Annotation of 43BSDTahoe/lib/libc/gen/getgrnam.c, revision 1.1

1.1     ! root        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: }

unix.superglobalmegacorp.com

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