Rewinds the user database.
Format
#include <pwd.h>
void setpwent (void);
1 – Description
The setpwent function effectively rewinds the user database to
allow repeated searches.
No value is returned, but errno is set to EIO if an I/O error
occurred.
See also getpwent.