lpd is no longer an example of a DAEMON facility
[unix-history] / usr / src / lib / libc / gen / getpwnam.c
CommitLineData
b8f253e8
KM
1#ifndef lint
2static char sccsid[] = "@(#)getpwnam.c 5.1 (Berkeley) %G%";
3#endif not lint
4
7e222f04
BJ
5#include <pwd.h>
6
7struct passwd *
8getpwnam(name)
9char *name;
10{
11 register struct passwd *p;
12 struct passwd *getpwent();
13
14 setpwent();
15 while( (p = getpwent()) && strcmp(name,p->pw_name) );
16 endpwent();
17 return(p);
18}