Annotation of 41BSD/cmd/csh/getpwnam.c, revision 1.1.1.1

1.1       root        1: static char *sccsid = "@(#)getpwnam.c 4.1 10/9/80";
                      2: 
                      3: #include <pwd.h>
                      4: 
                      5: struct passwd *
                      6: getpwnam(name)
                      7: char *name;
                      8: {
                      9:        register struct passwd *p;
                     10:        struct passwd *getpwent();
                     11: 
                     12:        setpwent();
                     13:        while( (p = getpwent()) && strcmp(name,p->pw_name) );
                     14:        endpwent();
                     15:        return(p);
                     16: }

unix.superglobalmegacorp.com

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