.TH getgrent() "" "" "General Function (libc)"
.PC "Get group file information"
.B "#include <grp.h>"
.B "struct group *getgrent(\|);"
.PP
.B getgrent()
returns the next entry from file
.BR /etc/group .
It returns NULL if an error occurs or if the end of file is encountered.
.SH Files
.B /etc/group
.br
.B <grp.h>
.SH "See Also"
.Xr "group," group
.Xr "initgroups()," initgroup
.Xr "libc" libc
.SH Notes
All structures and information returned are
in a static area internal to
.BR getgrent() .
Therefore, information from a previous call is overwritten by each
subsequent call.
