17 #include <grass/gis.h> 18 #include <grass/glocale.h> 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)
const char * G_location(void)
Get current location name.
char * G_mapset_path(void)
Get current mapset UNIX-like path.
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
const char * G_getenv_nofatal(const char *name)
Get environment variable.
char * G__mapset_path(void)
Get current mapset UNIX-like path (internal use only)
const char * G_gisdbase(void)
Get name of top level database directory.
const char * G_mapset(void)
Get current mapset name.