Annotation of researchv9/libc/stdio/getgrgid.c, revision 1.1

1.1     ! root        1: /* @(#)getgrgid.c      4.1 (Berkeley) 12/21/80 */
        !             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: }

unix.superglobalmegacorp.com

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