21 static int test_path_file(
const char *,
const char *);
23 static int test_path_file(
const char *
path,
const char *
file)
28 size_t len = strlen(
path) + strlen(
file) + 2;
30 snprintf(buf, len,
"%s/%s",
path,
file);
52 return test_path_file(
path,
"etc/element_list");
65 return test_path_file(
path,
"PERMANENT/DEFAULT_WIND");
78 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.