getgid - get real group identity
#include <unistd.h> #include <sys/types.h>
gid_t getgid(void);
getgid(2) returns the real group ID of the current process.
The real ID corresponds to the ID of the calling process.
These functions are always successful.
POSIX, BSD 4.3
7 pages link to getgid(2):