man endpwent () - See getpwent.3posix

REFERENCE

See getpwent.3posix