4.3BSD-UWisc/man/cat3/getpw.3c




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



NAME
     getpw - get name from uid

SYNOPSIS
     getpw(uid, buf)
     char *buf;

DESCRIPTION
     Getpw is made obsolete by getpwuid(3).

     _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 12/27/86          May 27, 1986                          1