C examples for stdlib.h:quick_exit
function
<cstdlib> <stdlib.h>
Terminate calling process quick
quick_exit (int status); void quick_exit (int status) noexcept;
Parameter | Description |
---|---|
status | Status code. |
If this is 0 or EXIT_SUCCESS, it indicates success. If it is EXIT_FAILURE, it indicates failure.
none.
#include <stdio.h> #include <stdlib.h> void fnQExit (void){ puts ("Quick exit function."); } int main ()//from w ww . java 2 s .c o m { at_quick_exit (fnQExit); puts ("Main function: Beginning"); quick_exit (EXIT_SUCCESS); puts ("never executed"); return 0; }