LOGNAME(3X)
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