Function Reference
— Loadable Function: pw_struct = getpwnam (name)

Return a structure containing the first entry from the password database with the user name name. If the user name does not exist in the database, getpwname returns 0.