ggeettppwwnnaamm() -- General Function (libc)

Get password file information, by name
#iinncclluuddee <ppwwdd.hh>
ssttrruucctt ppaasssswwdd *ggeettppwwnnaamm(_u_n_a_m_e)
cchhaarr *_u_n_a_m_e;

The COHERENT  system has  five routines  that search the  file /eettcc/ppaasssswwdd,
which contains  information about every  user of the  system.  The returned
structure ppaasssswwdd is defined in the  header file ppwwdd.hh. For a description of
this structure, see ppwwdd.hh.

ggeettppwwnnaamm() attempts to find the first entry with a name of _u_n_a_m_e.

_E_x_a_m_p_l_e
For an example of this function, see the entry for ggeettppwweenntt().

_F_i_l_e_s
/eettcc/ppaasssswwdd
ppwwdd.hh

_S_e_e _A_l_s_o
lliibbcc
POSIX Standard, section 9.2.2

_D_i_a_g_n_o_s_t_i_c_s
ggeettppwwnnaamm() returns NULL for any error or on end of file.

_N_o_t_e_s
All structures  and information  returned are  in static areas  internal to
ggeettppwwnnaamm(). Therefore,  information from a previous  call is overwritten by
each subsequent call.
