Annotation of 40BSD/libc/stdio/getpwnam.c, revision 1.1

1.1     ! root        1: #include <pwd.h>
        !             2: 
        !             3: struct passwd *
        !             4: getpwnam(name)
        !             5: char *name;
        !             6: {
        !             7:        register struct passwd *p;
        !             8:        struct passwd *getpwent();
        !             9: 
        !            10:        setpwent();
        !            11:        while( (p = getpwent()) && strcmp(name,p->pw_name) );
        !            12:        endpwent();
        !            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.