/* @[$] getpwuid.c 2.1 09/12/83 11:13:36 - 87wega3.2. */ #include struct passwd * getpwuid(uid) register uid; { register struct passwd *p; struct passwd *getpwent(); setpwent(); while( (p = getpwent()) && p->pw_uid != uid ); endpwent(); return(p); }