Return a structure containing an entry from the password database, opening it if necessary. Once the end of the data has been reached, getpwent returns 0.
getpwent