### Pgetgroups()

LONG Pgetgroups(len, gidset)

WORD len;
WORD *gidset;

| Pgetgroups() gets the supplementary group ids for the calling process.
Opcode | 327 (0x0147)
Availability | Available when a 'MiNT' cookie with a version of at least 1.11 exists.
Parameters | len specifies the length (in words) of the array to be filled with the supplementary group ids available. This value must be a positive number not greater than NGROUPS_MAX. If len is a zero, the call will return the number of supplementary group ids currently available for the calling process. gidset is a pointer to a word array to be filled with retrieved ids.
Binding |
    pea	gidset
    move.w	len,-(sp)
    move.w	#$0147,-(sp)
    trap	#1
    addq.l	#8,sp
Return Value | Pgetgroups() returns a number of supplementary group ids for the process on success or a negative GEMDOS error code otherwise.
Comments | The NGROUPS_MAX value is returned by Sysconf().
See Also | Psetgroups(), Sysconf()