GETGRENT(3) — UNIX Programmer’s Manual
NAME
getgrent, getgrgid, getgrnam, setgrent, endgrent − get group file entry
SYNOPSIS
#include <grp.h>
struct group ∗getgrent()
struct group ∗getgrgid(gid)
int gid;
struct group ∗getgrnam(name)
char ∗name;
setgrent()
endgrent()
DESCRIPTION
Getgrent, getgrgid and getgrnam each return pointers to an object with the following structure containing the broken-out fields of a line in the group file.
/∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗