qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_cexit, _c_exit
 Summary                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _cexit and _c_exit functions perform cleanup operations and
     return to the caller without terminating the process.
 
     The _cexit function first calls, in "last in, first out" order,
     the functions registered by atexit and onexit, then flushes all
     buffers and closes all open files before returning.
 
     The _c_exit function returns to the calling process without
     processing atexit or onexit functions or flushing stream buffers.
 
     The behavior of the exit, _exit, _cexit, and _c_exit functions is
     shown below:
 
     Function     Action
 
     exit         Performs complete C library termination procedures,
                  terminates the process, and exits with the supplied
                  status code
 
     _exit        Performs "quick" C library termination procedures,
                  terminates the process, and exits with the supplied
                  status code
 
     _cexit       Performs complete C library termination procedures
                  and returns to caller, but does not terminate the
                  process
 
     _c_exit      Performs "quick" C library termination procedures and
                  returns to caller, but does not terminate the process
 
     Return Value
 
     None.
                                    -♦-