Closes the user database and any private stream used by getpwent. Format #include <pwd.h> void endpwent (void);
1 – Description
The endpwent function closes the user database and any private stream used by getpwent. No value is returned. If an I/O error occurred, the function sets errno to EIO. See also getpwent, getpwuid, getpwnam, and setpwent.