Name
ap_ gname2id — convert a group name to a group ID (GID)
Synopsis
gid_t ap_ gname2id(const char *name)
If name
starts with a
“#,” returns the number following
it; otherwise, looks it up using getgrnam()
and
returns the GID. Under Win32, this function always returns
1
.