GETPWENT(3) GETPWENT(3) NAME getpw, getpwent, getpwuid, getpwnam, setpwent, endpwent, pwdecode - get password file entry SYNOPSIS getpw(uid, buf) char *buf; #include <pwd.h> struct passwd *getpwent() struct passwd *getpwuid(uid) int uid; struct passwd *getpwnam(name) char *name; int setpwent() int endpwent() struct passwd *pwdecode(p) char *p; DESCRIPTION Getpw searches the password file for the (numerical) uid and fills in buf with a corresponding line. The line is null- terminated. Getpwent, getpwuid and getpwnam each return a pointer to an object with the following structure containing the broken- out fields of a line in the password file.