19 #include <sys/types.h>
20 #include <grass/gis.h>
21 #include <grass/glocale.h>
42 if (access(location, 0) != 0) {
44 G_fatal_error(_(
"LOCATION << %s >> not available"), location);
80 location = G_malloc(strlen(base) + strlen(name) + 2);
82 sprintf(location,
"%s/%s", base, name);
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
char * G__location_path(void)
Get current location path.
char * G_getenv(const char *name)
Get environment variable.
char * G_location_path(void)
Get current location directory.
char * G_gisdbase(void)
Get name of top level database directory.
char * G_location(void)
Get current location name.
int G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.