Name for the abnormal termination signal.
Include
<signal.h>
Prototype
#define SIGABRT
Remarks
SIGABRT
represents an abnormal termination signal and is used in
conjunction with raise
or signal
. The default
raise
behavior (action identified by SIG_DFL
) is
to output to the standard error stream:
abort - terminating
See the example accompanying signal
to see general usage of signal names
and signal handling.
Example
#include <signal.h> /* for raise, SIGABRT */
#include <stdio.h> /* for printf */
int main(void)
{
raise(SIGABRT);
printf("Program never reaches here.");
}
Example Output
ABRT
where ABRT
stands for “abort.”