Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

groupmember — checks group set for a group ID

Authors

       This manual page was written by Chad David <davidc@acns.ab.ca>.

Debian                                            July 9, 2001                                    GROUPMEMBER(9)

Description

       The groupmember() function checks to see if the given gid is in the group set of the credentials.

       Its arguments are:

       gid   The group ID to check for.

       cred  The credentials to search for the group in.

Name

       groupmember — checks group set for a group ID

Return Values

       If the gid is found, 1 is returned; otherwise, 0 is returned.

Synopsis

#include<sys/param.h>#include<sys/ucred.h>intgroupmember(gid_tgid, structucred*cred);

See Also