GETPW(3C)
NAME
getpw − get name from user ID
USAGE
getpw(uid, buf)
char *buf;
DESCRIPTION
Getpw has been made obsolete by getpwuid(3).
Getpw searches the password file for the (numerical) uid, and fills in buf with the corresponding line; it returns non-zero if uid was not found. The line is terminated by a null.
FILES
/etc/passwd
DIAGNOSTICS
Returns non-zero on an error.