12.07.2015 Views

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

GNU Octave - Local Sector 7 web page

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

314 <strong>GNU</strong> <strong>Octave</strong>34.8 Group Database Functions<strong>Octave</strong>’s group database functions return information in a structure with the followingfields.namepasswdgidmemThe user name.The encrypted password, if available.The numeric group id.The members of the group.In the descriptions of the following functions, this data structure is referred to as agrp struct.grp struct = getgrent ()Loadable FunctionReturn an entry from the group database, opening it if necessary. Once the end ofthe data has been reached, getgrent returns 0.grp struct = getgrgid (gid).Loadable FunctionReturn the first entry from the group database with the group ID gid. If the groupID does not exist in the database, getgrgid returns 0.grp struct = getgrnam (name)Loadable FunctionReturn the first entry from the group database with the group name name. If thegroup name does not exist in the database, getgrname returns 0.setgrent ()Return the internal pointer to the beginning of the group database.Loadable Functionendgrent ()Close the group database.Loadable Function34.9 System Informationcomputer ()Function FilePrint or return a string of the form cpu-vendor-os that identifies the kind of computer<strong>Octave</strong> is running on. If invoked with an output argument, the value is returnedinstead of printed. For example,computer ()⊣ i586-pc-linux-gnux = computer ()⇒ x = "i586-pc-linux-gnu"

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!