21 static int test_path_file(
const char *,
const char *);
23 static int test_path_file(
const char *
path,
const char *
file)
31 ret = access(buf, F_OK);
51 return test_path_file(
path,
"etc/element_list");
64 return test_path_file(
path,
"PERMANENT/DEFAULT_WIND");
77 return test_path_file(
path,
"WIND");
void G_free(void *)
Free allocated memory.
int G_is_mapset(const char *path)
Test if specified directory is mapset.
int G_is_gisbase(const char *path)
Test if specified directory is GISBASE.
int G_is_location(const char *path)
Test if specified directory is location.