Return the first entry from the group database with the group ID gid. If the group ID does not exist in the database, getgrgid returns 0.
getgrgid