ABORT

Section: C Library Functions (3)
Updated: August 1, 1992
Index Return to Main Contents
 

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

sigvec(2), exit(2)  

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.


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
DIAGNOSTICS
BUGS

This document was created by man2html, using the manual pages.
Time: 17:21:51 GMT, March 25, 2025