17 #include <sys/types.h> 18 #include <grass/gis.h> 19 #include <grass/glocale.h> 21 #include "gis_local_proto.h" 59 if (access(location, F_OK) != 0) {
82 char *location = G_malloc(strlen(base) + strlen(name) + 2);
84 sprintf(location,
"%s/%s", base, name);
const char * G_location(void)
Get current location name.
char * G__location_path(void)
Get current location UNIX-like path (internal use only)
void G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.
char * G_location_path(void)
Get current location UNIX-like path.
const char * G_gisdbase(void)
Get name of top level database directory.
const char * G_getenv(const char *name)
Get environment variable.