1: /*	@(#)getgrgid.c	2.1	SCCS id keyword	*/
   2: #include <grp.h>
   3: 
   4: struct group *
   5: getgrgid(gid)
   6: register gid;
   7: {
   8:     register struct group *p;
   9:     struct group *getgrent();
  10: 
  11:     setgrent();
  12:     while( (p = getgrent()) && p->gr_gid != gid );
  13:     endgrent();
  14:     return(p);
  15: }

Defined functions

Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 650
Valid CSS Valid XHTML 1.0 Strict