BSD 3 development
[unix-history] / usr / src / libc / stdio / getpwuid.c
CommitLineData
18e5fa7e
BJ
1#include <pwd.h>
2
3struct passwd *
4getpwuid(uid)
5register uid;
6{
7 register struct passwd *p;
8 struct passwd *getpwent();
9
10 setpwent();
11 while( (p = getpwent()) && p->pw_uid != uid );
12 endpwent();
13 return(p);
14}