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.