BSD 3 development
[unix-history] / usr / src / libc / stdio / getpwnam.c
CommitLineData
18e5fa7e
BJ
1#include <pwd.h>
2
3struct passwd *
4getpwnam(name)
5char *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}