21 #include <grass/gis.h> 37 static int initialized;
38 static const char *
name;
53 if (!name || !*name) {
54 struct passwd *p = getpwuid(getuid());
55 if (p && p->pw_name && *p->pw_name)
char * G_store(const char *s)
Copy string to allocated memory.
int G_is_initialized(int *p)
void G_initialize_done(int *p)
const char * G_whoami(void)
Gets user's name.