getpwent, getpwuid, getpwnam, setpwent, endpwent \- get password file entry
.B struct passwd *getpwent()
.B struct passwd *getpwuid(uid)
.B struct passwd *getpwnam(name)
each return a pointer to an object with the
containing the broken-out
fields of a line in the password file.
are unused; the others have meanings described in
line (opening the file if necessary);
search from the beginning until a matching
(or until EOF is encountered).
getlogin(3), getgrent(3), passwd(5)
(0) returned on EOF or error.
is contained in a static area
so it must be copied if it is