getpw(3)
NAME
getpw − get name from UID
SYNTAX
int getpw(uid, buf)
int uid;
char *buf;
DESCRIPTION
The getpw subroutine 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.
This routine is included only for compatibility with prior systems and should not be used. For routines to use instead, see getpwent(3).
DIAGNOSTICS
The getpw subroutine returns non-zero on error.
FILES
/etc/passwd