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");
58 sprintf(buf,
"%s%s",
getenv(
"HOMEDRIVE"),
getenv(
"HOMEPATH"));
char * G_store(const char *s)
Copy string to allocated memory.
char * G_home(void)
user's home directory
int G_fatal_error(const char *msg,...)
Print a fatal error message to stderr.