home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
minnie.tuhs.org
/
unixen.tar
/
unixen
/
PDP-11
/
Distributions
/
ucb
/
spencer_2bsd.tar.gz
/
2bsd.tar
/
src
/
csh
/
getpwuid.c
< prev
next >
Wrap
C/C++ Source or Header
|
1980-02-17
|
274b
|
16 lines
/* Copyright (c) 1979 Regents of the University of California */
#include <pwd.h>
struct passwd *
getpwuid(uid)
register uid;
{
register struct passwd *p;
struct passwd *getpwent();
setpwent();
while( (p = getpwent()) && p->pw_uid != uid );
endpwent();
return(p);
}