totn C Functions

C Language: abort function
(Abort Program)

In the C Programming Language, the abort function raises the SIGABRT signal, and causes abnormal program termination that returns an implementation defined code indicating unsuccessful termination. Functions registered with atexit aren't called.

The following may occur: file buffers are not flushed, streams are not closed, and temporary files are not deleted.

Syntax

The syntax for the abort function in the C Language is:

void abort(void);

Returns

The abort function does not return anything.

Required Header

In the C Language, the required header for the abort function is:

#include <stdlib.h>

Applies To

In the C Language, the abort function can be used in the following versions:

  • ANSI/ISO 9899-1990

Similar Functions

Other C functions that are similar to the abort function:

See Also

Other C functions that are noteworthy when dealing with the abort function: