.\" @(#)getgrent.3 6.1 (Berkeley) 5/15/85
.TH GETGRENT 3 "May 15, 1985"
getgrent, getgrgid, getgrnam, setgrent, endgrent \- 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.
getlogin(3), getpwent(3), group(5)
(0) is returned on EOF or error.
is contained in a static area
so it must be copied if it is