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