abort(3)
Name
abort − generate an illegal instruction fault
Syntax
#include <stdlib.h>
void abort()
Description
The abort subroutine executes an instruction which is illegal in user mode. This causes a signal that normally terminates the process with a core dump, which may be used for debugging.
Diagnostics
Illegal instruction − core dumped
− Bourne shell.
Illegal instruction (core dumped)
− C shell.
Environment
When your program is compiled using the System V or POSIX environment, abort closes open files before aborting the process with an IOT fault.
Restrictions
The abort function does not flush standard I/O buffers. Use fflush(.). For further information, see fclose(.).