Linux Programmer's Manual
group_member - test whether a process is in a group
int group_member(gid_t gid );
group_member() function tests whether any of the caller's
supplementary group IDs (as returned by getgroups(2)) matches
group_member() function returns nonzero if any of the caller's
supplementary group IDs matches gid, and zero otherwise.
This function is a nonstandard GNU extension.
This page is part of release 5.13 of the Linux
man-pages project. A
description of the project, information about reporting bugs, and the latest
version of this page, can be found at https://www.kernel.org/doc/man-pages/.
using mandoc for the conversion of manual pages.
The website is available under the terms of the
license, except for the contents of the manual pages, which have their own license
specified in the corresponding Arch Linux package.