

getgrnam()               General Function              getgrnam()




Get group file information, by group id

#include <grp.h>
ssttrruucctt ggrroouupp *ggeettggrrnnaamm(_g_n_a_m_e);
cchhaarr *_g_n_a_m_e;

getgrnam  searches file  /etc/group for  the  first entry  with a
group name of gname.  It returns a pointer to the entry for gname
if it  is found; it returns  NULL for any error or  if the end of
the file is encountered.

***** Files *****

/etc/group
<grp.h>

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

general functions, group

***** Notes *****

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































COHERENT Lexicon                                           Page 1


