Function Reference
— Loadable Function: pw_struct = getpwent ()

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.