abort(3) Library Functions Manual abort(3)

NAME

abortabnormal process termination

SYNOPSIS

#include <stdlib.h>

noreturn void abort(void);

DESCRIPTION

abort() causes abnormal process termination to occur.

First, SIGABRT will be raised, as if by raise(SIGABRT). If the signal is not being caught, or the handler which catches the signal returns, abort() will then proceed to cause the process to terminate with a failure exit status. It is implementation defined whether any open FILE streams are flushed before the process exits.

IMPLEMENTATION NOTES

PDCLib implements termination (in the case that the SIGABRT handler returns) by calling _Exit(EXIT_FAILURE). Therefore, stream flushing rules for abort follow those defined for _Exit().

SEE ALSO

exit(3) quick_exit(3) _Exit(3) raise(3)

STANDARDS

abort() is first defined in ISO/IEC 9899:1990 (“ISO C90”).
February 20, 2013 Fusion