getpw(3)
NAME
getpw − get name from uid
SYNTAX
getpw(uid, buf)
char *buf;
DESCRIPTION
The getpw routine has been superseded by getpwuid, see getpwent(3).
The getpw routine searches the password file for the (numerical) uid, and fills in buf with the corresponding line; it returns non-zero if uid could not be found. The line is null-terminated.
DIAGNOSTICS
Non-zero return on error.
FILES
/etc/passwd