| exit (status) | Built-in Function |
| quit (status) | Built-in Function |
| Exit the current Octave session. If the optional integer value status is supplied pass that value to the operating system as the Octave's exit status. |
| atexit (fcn) | Built-in Function |
Register a function to be called when Octave exits. For example
function print_fortune ()
printf ("\n%s\n" system ("fortune"));
fflush (stdout);
endfunction
atexit ("print_fortune");
will print a message when Octave exits. |