

getpwuid()               General Function              getpwuid()




Get password file information, by id

#include <pwd.h>
ssttrruucctt ppaasssswwdd *ggeettppwwuuiidd(_u_i_d)
iinntt _u_i_d;

The  COHERENT  system  has five  routines  that  search the  file
/etc/passwd, which  contains information about every  user of the
system.  The  returned structure passwd is  defined in the header
file pwd.h.  For more information on this structure, see pwd.h.

getpwuid attempts  to find the first entry  with a numerical user
id of uid.

***** Files *****

/etc/passwd
<pwd.h>

***** See Also *****

endpwent(),  general  functions,  getpwent(), getpwnam(),  pwd.h,
setpwent()

***** Diagnostics *****

getpwuid returns NULL for any error or on end of file.

***** Notes *****

All structures  and information returned are  in static areas in-
ternal to getpwuid.   Therefore, information from a previous call
is overwritten by each subsequent call.























COHERENT Lexicon                                           Page 1


