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

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