xref: /original-bsd/lib/libcompat/4.1/getpw.3 (revision 07d71086)
@(#)getpw.3 6.3 (Berkeley) 05/17/89

GETPW 3 ""
.AT 3
NAME
getpw - get name from uid
SYNOPSIS
 getpw(uid, buf)  char *buf; 
DESCRIPTION
Getpw is made obsolete by getpwuid(3).

It is available from the compatibility library, libcompat.

Getpw 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.

FILES
/etc/passwd
"SEE ALSO"
getpwent(3), passwd(5)
DIAGNOSTICS
Non-zero return on error.