Function Reference
— Loadable Function: grp_struct = getgrnam (name)

Return the first entry from the group database with the group name name. If the group name does not exist in the database, getgrname returns 0.