#include <sys/types.h> int
getpw (uid_t uid char *buf);
DESCRIPTION
Bf -symbolic
The
getpw ();
function is made obsolete by
getpwuid(3).
Ef
The
getpw ();
function reads the file
/etc/passwd
and if it finds
the specified
Fa uid ,
copies the password entry line into the string pointed to by
Fa buf .
the null terminated entry line from the password database,
and appends the
NUL
character.
RETURN VALUES
The
getpw ();
function returns the zero if successful, otherwise
a non-zero if the entry does not exist.