OS Manuals

strgid(3ast)

strgid - return group ID number for given group name

STRGID(3ast) STRGID(3ast)

strgid - return group ID number for given group name

int strgid(const char* name)

strgid returns the group ID number for the given group name. strgid maintains an internal cache to avoid repeated password database scans by the low level getgrgid(3). On the first error for a given name, strgid returns -1. Subsequent errors for the same name will result in strgid returning -2 instead.

getgrent(3)

ksh 1.0.10-r37 · os · ingested 2026-10-11