23 static int test_path_file(
const char *,
const char *);
26 static int test_path_file(
const char *
path,
const char *
file)
34 ret = access(buf, F_OK);
55 return test_path_file(
path,
"etc/element_list");
69 return test_path_file(
path,
"PERMANENT/DEFAULT_WIND");
83 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.