QUICK_EXIT(3) Library Functions Manual QUICK_EXIT(3)

quick_exitexits a program quickly, running minimal cleanup

Standard C Library (libc, -lc)

#include <stdlib.h>

_Noreturn void
quick_exit(int status);

The () function exits the program quickly calling any cleanup functions registered with at_quick_exit(3) but not any C++ destructors or cleanup code registered with atexit(3). The stdio(3) file buffers are not flushed.

The function () is when the functions registered with at_quick_exit(3) are.

The quick_exit() function does not return.

at_quick_exit(3), exit(3)

The quick_exit() function conforms to ISO/IEC 9899:2011 (“ISO C11”).

November 4, 2017 macOS 15.2