Octave's password database functions return information in a structure with the following fields.
namepasswduidgidgecosdirshellIn the descriptions of the following functions, this data structure is referred to as a pw_struct.
Return a structure containing an entry from the password database, opening it if necessary. Once the end of the data has been reached,
getpwentreturns 0.
Return a structure containing the first entry from the password database with the user ID uid. If the user ID does not exist in the database,
getpwuidreturns 0.
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,
getpwnamereturns 0.