.\" @(#)getgrent.3 6.2 (Berkeley) %G%
getgrent, getgrgid, getgrnam, setgrent, endgrent setgrfile \- get group file entry
.B struct group *getgrent()
.B struct group *getgrgid(gid)
.B struct group *getgrnam(name)
with the following structure
containing the broken-out
fields of a line in the group file.
The members of this structure are:
The encrypted password of the group.
of pointers to the individual
(or until EOF is encountered).
where the others leave off
so successive calls may be used
to search the entire file.
has the effect of rewinding
when processing is complete.
\fISetgrfile\fP changes the default group file to \fIname\fP thus allowing
alternate grioup files to be used. Note that it does \fInot\fP close the
previous file. If this is desired, \fIendgrent\fP should be called prior
getlogin(3), getpwent(3), group(5)
(0) is returned on EOF or error.
All information is contained in a static area so it must be copied if it is