Octave's group database functions return information in a structure with the following fields.
namepasswdgidmemIn the descriptions of the following functions, this data structure is referred to as a grp_struct.
Return an entry from the group database, opening it if necessary. Once the end of data has been reached,
getgrentreturns 0.
Return the first entry from the group database with the group ID gid. If the group ID does not exist in the database,
getgrgidreturns 0.
Return the first entry from the group database with the group name name. If the group name does not exist in the database,
getgrnamreturns 0.