36 static int initialized;
37 static const char *
name;
43 name = getenv(
"USERNAME");
46 name = getenv(
"LOGNAME");
49 name = getenv(
"USER");
53 struct passwd *p = getpwuid(getuid());
55 if (p && p->pw_name && *p->pw_name)
int G_is_initialized(int *)
void G_initialize_done(int *)
char * G_store(const char *)
Copy string to allocated memory.
const char * G_whoami(void)
Gets user's name.