ABORT(3) | Library Functions Manual | ABORT(3)

# NAME

`abort` — cause abnormal program termination

# SYNOPSIS

`#include <stdlib.h>`

void
`abort`(void);

# DESCRIPTION

The `abort`() function causes abnormal program termination to occur, unless the signal `SIGABRT` is being caught and the signal handler does not return.

Some implementations may flush output streams before terminating. This implementation does not.

# RETURN VALUES

The `abort`() function never returns.

# SEE ALSO

sigaction(2), exit(3)

# STANDARDS

The `abort`() function conforms to IEEE Std 1003.1-1990 (“POSIX.1”).

# HISTORY

The `abort`() function first appeared in Version 5 AT&T UNIX.

Historically, previous standards required `abort`() to flush and close output streams, but this conflicted with the requirement that `abort`() be async signal safe. As a result, the flushing requirement was dropped.

May 14, 2014 | Debian