Aborting a Program (The GNU C Library)

#### 26.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-Safe | AC-Safe | See POSIX Safety Concepts.

  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.

  If either the signal handler does not terminate the process, or if the signal is blocked, `abort` will reset the signal disposition to the default `SIG_DFL` action and raise the signal again.