Function Reference
— Loadable Function: grp_struct = getgrent ()

Return an entry from the group database, opening it if necessary. Once the end of the data has been reached, getgrent returns 0.