+void ForgetAllSearchPaths (unsigned Where)
+/* Forget all search paths in the given lists. */
+{
+ unsigned I;
+ for (I = 0; I < MAX_SEARCH_PATHS; ++I) {
+ unsigned Mask = (0x01U << I);
+ if (Where & Mask) {
+ xfree (SearchPaths[I]);
+ SearchPaths[I] = 0;
+ }
+ }
+}
+
+
+
char* SearchFile (const char* Name, unsigned Where)
/* Search for a file in a list of directories. Return a pointer to a malloced
* area that contains the complete path, if found, return 0 otherwise.
void AddSearchPathFromEnv (const char* EnvVar, unsigned Where);
/* Add a search from an environment variable */
+void ForgetAllSearchPaths (unsigned Where);
+/* Forget all search paths in the given lists. */
+
char* SearchFile (const char* Name, unsigned Where);
/* Search for a file in a list of directories. Return a pointer to a malloced
* area that contains the complete path, if found, return 0 otherwise.