system#
Purpose#
Quits GAUSS and returns to the operating system.
Format#
system;
system c;
Parameters
- c:
(scalar) an optional exit code that can be recovered by the program that invoked GAUSS. The default is 0. Valid arguments are 0-255.
Remarks#
The system command always returns an exit code to the operating system or invoking program. If you don’t supply one, it returns 0. This is usually interpreted as indicating success.
Examples#
// Quit GAUSS with default exit code 0
system;
// Quit GAUSS with a custom exit code
system 1; // returns exit code 1 to the OS
See also
Functions exec()