getgrent - get the group database entry
#include <grp.h> struct group *getgrent(void);
Refer to endgrent().