P8000/WEGA/src/lib/libc/gen/getpwuid.c

17 lines
268 B
C

/* @[$] getpwuid.c 2.1 09/12/83 11:13:36 - 87wega3.2. */
#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);
}