c/program/exit

Causes normal program termination to occur.

Several cleanup steps are performed:


 * functions passed to atexit are called, in reverse order of registration
 * all C streams are flushed and closed
 * files created by tmpfile are removed
 * control is returned to the host environment. If is zero or exit_success, an implementation-defined status indicating successful termination is returned. If  is exit_failure, an implementation-defined status indicating unsuccessful termination is returned. In other cases implementation-defined status value is returned.

Return value
(none)