getpw(3C) getpw(3C)
NAME
getpw - get user name
SYNOPSIS
#include <stdlib.h>
int getpw(uidt uid, char *buf);
DESCRIPTION
getpw() searches the password file 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 nonzero if
uid cannot be found.
This routine is included only for compatibility with prior systems and
should not be used; see getpwent(3C) for routines to use instead.
RESULT
getpw() returns non-zero on error.
FILES
/etc/passwd
SEE ALSO
getpwent(3C), passwd(4).
Page 1 Reliant UNIX 5.44 Printed 11/98