abort()

abnormally terminate program 

Function


SYNOPSIS

#include <stdlib.h>

void abort(void);


DESCRIPTION

The abort() function causes the program to abnormally terminate unless the signal SIGABRT is being caught and the signal handler does not return. The SIGABRT signal is sent to the calling process as if by means of raise(SIGABRT).

If your programs blocks or ignores the SIGABRT signal, the abort() function still overrides it.

If SIGABRT is neither caught nor ignored, and the current directory is writable, a core dump may be produced.


PARAMETERS

None.


RETURN VALUES

The abort() function cannot return to its caller.


CONFORMANCE

UNIX 98, with exceptions.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

The NuTCRACKER Platform does not flush standard IO streams prior to raising the SIGABRT signal.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
close(), exit(), kill(), signal()


MKS Toolkit 9.2 Documentation Build 16.