GETPW(3C) DOMAIN/IX Reference Manual (SYS5) GETPW(3C)
NAME
getpw - get name from UID
USAGE
int getpw (uid, buf)
int 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
zero. Getpw returns non-zero if uid cannot be found.
This routine is included for compatibility with prior
release; see getpwent(3C) for alternate routines.
NOTES
This routine uses <stdio.h>, which causes it to increase the
size of programs that don't otherwise use standard I/O, more
than you might expect.
FILES
/etc/passwd
DIAGNOSTICS
Getpw returns non-zero on error.
RELATED INFORMATION
getpwent(3C), passwd(4)
Printed 5/10/85 GETPW-1