---
name: "strgid"
section: "3"
platform: "macos"
package: "ksh"
version: "42"
release: "macOS 26.5"
platforms: ["macos"]
url: "https://new.carta.tech/strgid"
---

# strgid(3)

return group name given group number

## NAME

strgid - return group name given group number

## SYNOPSIS

$1$2char\* strgid(int gid)char\* strgid(int gid)char\* strgid(int gid)char\* strgid(int gid)char\* strgid(int gid)char\* strgid(int gid)char\* strgid(int gid)char\* strgid(int gid)

## DESCRIPTION

*strgid* returns the group id name string given the group number *gid*. *strgid* maintains an internal cache to avoid repeated password database scans by the low level [*getgrgid*(3)](/getgrgid/3.md).

## SEE ALSO

[getgrent(3)](/getgrent/3.md)
