1: #if defined(LIBC_SCCS) && !defined(lint)
   2: static char sccsid[] = "@(#)getgrnam.c	5.2 (Berkeley) 3/9/86";
   3: #endif LIBC_SCCS and not lint
   4: 
   5: #include <grp.h>
   6: 
   7: struct group *
   8: getgrnam(name)
   9: register char *name;
  10: {
  11:     register struct group *p;
  12:     struct group *getgrent();
  13: 
  14:     setgrent();
  15:     while( (p = getgrent()) && strcmp(p->gr_name,name) );
  16:     endgrent();
  17:     return(p);
  18: }
Last modified: 1986-03-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1001
Valid CSS Valid XHTML 1.0 Strict