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