20 #include "gis_local_proto.h" 78 if (access(mapset, F_OK) != 0) {
102 char *mapset_path =
G_malloc(strlen(base) + strlen(location) +
105 sprintf(mapset_path,
"%s/%s/%s", base, location, mapset);
const char * G__mapset(void)
Get current mapset name (internal use only)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
const char * G_gisdbase(void)
Get name of top level database directory.
char * G_mapset_path(void)
Get current mapset UNIX-like path.
const char * G_location(void)
Get current location name.
char * G__mapset_path(void)
Get current mapset UNIX-like path (internal use only)
const char * G_getenv_nofatal(const char *)
Get environment variable.
const char * G_mapset(void)
Get current mapset name.