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

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


SEE ALSO

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


PTC MKS Toolkit 10.1 Documentation Build 15.