MCPcopy Create free account
hub / github.com/NetHack/NetHack / get_login_name

Function get_login_name

sys/unix/unixmain.c:762–773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

760}
761
762char *
763get_login_name(void)
764{
765 static char buf[BUFSZ];
766 struct passwd *pw = get_unix_pw();
767
768 buf[0] = '\0';
769 if (pw)
770 (void)strcpy(buf, pw->pw_name);
771
772 return buf;
773}
774
775#ifdef __APPLE__
776extern int errno;

Callers 1

X11_player_selectionFunction · 0.50

Calls 1

get_unix_pwFunction · 0.70

Tested by

no test coverage detected