GETPW(III)                   4/7/73                    GETPW(III)







NAME

     getpw - get name from UID



SYNOPSIS

     getpw(uid, buf)

     char *buf;



DESCRIPTION

     Getpw searches the password file for  the  (numerical)  uid,

     and  fills  in  buf  with the corresponding line; it returns

     non-zero if uid could not  be  found.   The  line  is  null-

     terminated.



FILES

     /etc/passwd



SEE ALSO

     passwd(V)



DIAGNOSTICS

     non-zero return on error.



BUGS

     It disturbs buffered input via getchar (III).