Node:Aborting a Program, Next:Termination Internals, Previous:Cleanups on Exit, Up:Program Termination
You can abort your program using the abort
function. The prototype
for this function is in stdlib.h
.
void abort (void) | Function |
The abort function causes abnormal program termination. This
does not execute cleanup functions registered with atexit or
on_exit .
This function actually terminates the process by raising a
SIGABRT signal, and your program can include a handler to
intercept this signal; see Signal Handling.
|