LOGNAME(3X) — UNIX 3.0
NAME
logname − login name of user
SYNOPSIS
char ∗logname();
DESCRIPTION
Logname returns a pointer to the null-terminated login name; it extracts the $LOGNAME variable from the user’s environment.
This routine is kept in /lib/libPW.a.
FILES
/etc/profile
SEE ALSO
env(1), login(1), profile(5), environ(7).
May 16, 1980