Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


getgrgid()               General Function              getgrgid()




Get group file information, by group name

#include <grp.h>
struct group *getgrgid(gid);
int gid;

getgrgid  searches file  /etc/group for  the  first entry  with a
numerical group id of gid.  It  returns a pointer to the entry if
found; it returns  NULL if an error occurs or  if the end of file
is encountered.

***** Files *****

/etc/group
<grp.h>

***** See Also *****

general functions, group

***** Notes *****

All structures and information  returned are in a static area in-
ternal to getgrgid.   Therefore, information from a previous call
is overwritten by each subsequent call.































COHERENT Lexicon                                           Page 1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026