COHERENT manpages
This page displays the COHERENT manpage for getgrgid() [Get group file information, by group id].
List of available manpages
Index
getgrgid() -- General Function (libc) Get group file information, by group id #include <grp.h> struct group *getgrgid(gid); int gid; getgrgid() searches file /etc/group for the first entry with a numerical group id of gid. It returns a pointer to the entry if found; it returns NULL if an error occurs or if the end of file is encountered. Files /etc/group <grp.h> See Also group, libc POSIX Standard, §9.2.1 Notes All structures and information returned are in a static area internal to getgrgid(). Therefore, information from a previous call is overwritten by each subsequent call.