GETLOGIN(3C-POSIX) RISC/os Reference Manual GETLOGIN(3C-POSIX)
NAME
getlogin - get login name
SYNOPSIS
char *getlogin ( );
DESCRIPTION
getlogin returns a pointer to a string giving the user name
associated with the calling process. This value corresponds
to the name the user logged in under, even if several login
names share the name user ID.
DIAGNOSTICS
getlogin returns a NULL pointer if the user's login name
cannot be found.
CAVEAT
The return value points to static data whose content is
overwritten by each call.
SEE ALSO
getgrnam(3C), getpwuid(3C).
Printed 1/15/91 Page 1