18 #include <grass/gis.h>
19 #include <grass/glocale.h>
39 G_fatal_error(_(
"unable to determine user's home directory"));
45 static char *home = 0;
55 home =
getenv(
"USERPROFILE");
sprintf(buf2,"%s", G3D_CATS_ELEMENT)
char * G_store(const char *s)
Copy string to allocated memory.
char * G_home(void)
user's home directory
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
int G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.