www.delorie.com/djgpp/doc/libc/libc_397.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

getgrgid

Syntax

 
#include <grp.h>

extern struct group *getgrgid(int gid);

Description

This function returns the group entry that matches gid. See section getgrent, for the description of struct group.

Return Value

The matching group, or NULL if none match.

Portability

ANSI/ISO C No
POSIX 1003.2-1992; 1003.1-2001


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004