ggeettllooggiinn() -- General Function (libc)

Get login name
#iinncclluuddee <uunniissttdd.hh>
cchhaarr *ggeettllooggiinn()

The name corresponding to the current user id is not always the same as the
name under which a user logged  into the COHERENT system.  For example, the
user may  have issued  a ssuu  command, or there  may be several  login names
associated with a user id.  ggeettllooggiinn()  returns the login name found in the
file /eettcc/uuttmmpp.

In cases where ggeettllooggiinn()  fails to produce a result, ggeettppwwuuiidd() (described
in ggeettppwweenntt()) is normally used to determine the user name for a process.

_F_i_l_e_s
/eettcc/uuttmmpp  login names

_S_e_e _A_l_s_o
ggeettppwweenntt(), ggeettuuiidd(), lliibbcc, ssuu, ttttyynnaammee(), uunniissttdd.hh, uuttmmpp.hh, wwhhoo
POSIX Standard, section 4.2.4

_D_i_a_g_n_o_s_t_i_c_s
ggeettllooggiinn() returns NULL if the login name cannot be determined.

_N_o_t_e_s
ggeettllooggiinn() stores the  returned name in a static area  that is destroyed by
subsequent calls.
