AT_QUICK_EXIT(3)
π AT_QUICK_EXIT(3) π
okay so welcome to the at_quick_exit(3) page, bestie β this one is from the Library Functions Manual, and itβs literally about registering a cleanup function to run on quick exit. itβs giving βlast-minute cleanup before the program dipsβ energy, and honestly? iconic. π¦
πΈ NAME πΈ
at_quick_exit β registers a cleanup function to run on quick exit π
π§ LIBRARY π§
Standard C Library (libc, -lc) β yes bestie, the standard C library, no cap. β¨
β¨ SYNOPSIS β¨
#include <stdlib.h>
int
at_quick_exit(void (*func)(void));
π¦ DESCRIPTION π¦
okay so at_quick_exit() registers a cleanup function to be called when the program exits as a result of calling quick_exit(3). the cleanup functions are called in the reverse order β last one registered runs first, stack vibes β and they will not be called if the program exits by calling exit(3), _Exit(3), or abort(3). no cap, that distinction is lowkey important. π
π RETURN VALUES π
at_quick_exit() returns the value 0 if successful and a non-zero value on failure. simple, clean, slay. π
π₯ SEE ALSO π₯
go check them out, iykyk. π«Ά
π STANDARDS π
The at_quick_exit() function conforms to ISO/IEC 9899:2011 (βISO C11β). periodt. β¨
π cute sign-off time: source/version is Debian, date is December 7, 2011, and this page is AT_QUICK_EXIT(3). bye bestie, go register those cleanups responsibly! ππ¦
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2011 David Chisnall
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms