19 #include "gis_local_proto.h"
55 static int initialized;
56 static const char *home = 0;
66 home = getenv(
"USERPROFILE");
69 sprintf(buf,
"%s%s", getenv(
"HOMEDRIVE"), getenv(
"HOMEPATH"));
76 home = getenv(
"HOME");
79 home = getenv(
"HOME");
100 static int initialized_config;
101 static const char *config_path = 0;
103 static const char *config_dir =
NULL;
108 config_dir = getenv(
"GRASS_CONFIG_DIR");
111 config_dir = getenv(
"APPDATA");
125 if (ret == -1 && errno != EEXIST)
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
int G_is_initialized(int *)
void G_initialize_done(int *)
int G_mkdir(const char *)
Creates a new directory.
char * G_store(const char *)
Copy string to allocated memory.
const char * G_home(void)
Get user's home directory.
const char * G_config_path(void)
Get user's config path directory.
const char * G__home(void)
Get user's home directory (internal use only)