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(.).
The getpw routine searches the password file for the (numerical) uid, and fills in buf with the corresponding line; it returns nonzero if uid could not be found. The line is null terminated.
DIAGNOSTICS
Nonzero return on error.
FILES
/etc/passwd