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