Manual page for getpw(3C)
getpw - get passwd entry from UID
SYNOPSIS
#include <stdlib.h>
int getpw(uid_t uid,
char *buf);
MT-LEVEL
Safe
DESCRIPTION
getpw()
searches the user data base for
a user id number that equals
uid,
copies the line of the password file in which
uid
was found into the array pointed to by
buf,
and returns 0.
getpw()
returns non-zero if
uid
cannot be found.
This routine is included only for compatibility with prior
systems and should not be used; see
getpwnam.3c
for routines to use instead.
RETURN VALUES
getpw()
returns non-zero on error.
FILES
/etc/passwd
SEE ALSO
getpwnam.3c
passwd.4
NOTES
If the /etc/passwd and the /etc/group files have
the ``+'' for the NIS entry, then
getpwent()
and
getgwent()
will not return
NULL
when the end of file is reached.
Created by unroff & hp-tools.
© by Hans-Peter Bischof. All Rights Reserved (1997).
Last modified 21/April/97