2.9BSD/usr/man/cat3/getpw.3

Compare this file to the similar file:
Show the results in this format:


GETPW(3)            UNIX Programmer's Manual             GETPW(3)

NAME
     getpw - get name from UID

SYNOPSIS
     getpw(uid, buf)
     char *buf;

DESCRIPTION
     _G_e_t_p_w searches the password file for the (numerical) _u_i_d,
     and fills in _b_u_f with the corresponding line; it returns
     non-zero if _u_i_d could not be found.  The line is null-
     terminated.

FILES
     /etc/passwd

SEE ALSO
     getpwent(3), passwd(5)

DIAGNOSTICS
     Non-zero return on error.

Printed 5/27/83                                                 1