ABORT(3) — UNIX Programmer’s Manual
NAME
abort − generate a fault
SYNOPSIS
#include <stdlib.h>
void abort(void);
DESCRIPTION
Abort executes an instruction which is illegal in user mode. This generates a SIGABRT signal that normally terminates the process with a core dump, which may be used for debugging.
The abort() function flushes standard I/O buffers before process termination.
SEE ALSO
DIAGNOSTICS
Usually “Illegal instruction − core dumped” from the shell.
BUGS
The BSD implementation of abort doesn’t flush standard I/O buffers. Use fflush(3S) before calling abort.
7th Edition — August 1, 1992