GETPW(3C) BSD GETPW(3C)
NAME
getpw - get name from UID
SYNOPSIS
getpw(uid, buf)
char *buf;
DESCRIPTION
getpw is made obsolete by getpwuid(3).
getpw 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.
FILES
/etc/passwd
SEE ALSO
getpwent(3), passwd(5)
DIAGNOSTICS
Nonzero return on error.