LOGNAME(3X) — Kubota Pacfic Computer Inc. (Specialized Libraries)
NAME
logname − return login name of user
SYNOPSIS
char ∗logname( )
DESCRIPTION
logname returns a pointer to the null-terminated login name; it extracts the LOGNAME environment variable from the user’s environment.
This routine is kept in /lib/libPW.a.
FILES
/etc/profile
SEE ALSO
env(1), getenv(3C), login(1), profile(4), environ(5).
CAVEATS
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.
September 02, 1992