logname(3x)
NAME
logname − return login name of user
SYNTAX
char *logname()
DESCRIPTION
The logname subroutine returns a pointer to the null-terminated login name. It extracts the $LOGNAME variable from the user’s environment.
RESTRICTIONS
The return values point to static data whose content is overwritten by each call.
This method of determining a login name is subject to forgery.
FILES
/etc/profile