GETPW(S) UNIX System V GETPW(S)
Name
getpw - get name from UID
Syntax
int getpw (uid, buf)
int uid;
char *buf;
Description
The getpw function 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 non-zero if uid cannot be found.
This routine is included only for compatibility with prior
systems and should not be used; see getpwent(S) for routines
to use instead.
Files
/etc/passwd
See Also
getpwent(S), passwd(F)
Diagnostics
The getpw function returns non-zero on error.
Warning
The above routine uses <stdio.h>, which causes it to
increase, more than might be expected, the size of programs
not otherwise using standard I/O.
Standards Conformance
getpw is conformant with:
The X/Open Portability Guide II of January 1987.
(printed 6/20/89)