projects
/
unix-history
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
BSD 3 development
[unix-history]
/
usr
/
src
/
libc
/
stdio
/
getpwuid.c
Commit
Line
Data
18e5fa7e
BJ
1
#include <pwd.h>
2
3
struct passwd *
4
getpwuid(uid)
5
register 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
}