GRASS GIS 7 Programmer's Manual
7.8.5(2020)-exported
|
Go to the documentation of this file.
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%c%s", base, HOST_DIRSEP,
name);
const char * G_gisdbase(void)
Get name of top level database directory.
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.
char * G__location_path(void)
Get current location UNIX-like path (internal use only)
const char * G_location(void)
Get current location name.
const char * G_getenv(const char *name)
Get environment variable.