Aborting a Program (The GNU C Library) (original) (raw)
25.7.4 Aborting a Program
You can abort your program using the abort
function. The prototype for this function is in stdlib.h.
Function: void abort (void) ΒΆ
Preliminary: | MT-Safe | AS-Unsafe corrupt | AC-Unsafe lock corrupt | See POSIX Safety Concepts.
The abort
function causes abnormal program termination. This does not execute cleanup functions registered with atexit
oron_exit
.
This function actually terminates the process by raising aSIGABRT
signal, and your program can include a handler to intercept this signal; see Signal Handling.