Annotation of 41BSD/libc/stdio/getgrgid.c, revision 1.1.1.1

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

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.