---
name: "quick_exit"
section: "3"
platform: "macos"
package: "Libc"
version: "1752.120.2"
release: "macOS 26.5"
platforms: ["freebsd", "macos"]
url: "https://new.carta.tech/quick_exit"
---

# quick\_exit(3)

exits a program quickly, running minimal cleanup

## NAME

**quick\_exit** – exits a program quickly, running minimal cleanup

## LIBRARY

Standard C Library (libc, -lc)

## SYNOPSIS

**#include \<stdlib.h\>**

*\_Noreturn* *void*\

**quick\_exit**(*int status*);

## DESCRIPTION

The **quick\_exit**() function exits the program quickly calling any cleanup functions registered with [at\_quick\_exit(3)](/at_quick_exit/3.md) but not any C++ destructors or cleanup code registered with [atexit(3)](/atexit/3.md). The [stdio(3)](/stdio/3.md) file buffers are not flushed.

The function **quick\_exit**() is *async-signal* *safe* when the functions registered with [at\_quick\_exit(3)](/at_quick_exit/3.md) are.

## RETURN VALUES

The **quick\_exit**() function does not return.

## SEE ALSO

[at\_quick\_exit(3)](/at_quick_exit/3.md), [exit(3)](/exit/3.md)

## STANDARDS

The **quick\_exit**() function conforms to ISO/IEC 9899:2011 (“ISO C11”).
