ref: f3055381a9c3a8eda50872aa92d6b22bb7f536a2
dir: /libc/src/exit.c/
/* See LICENSE file for copyright and license details. */ #include <stdlib.h> #undef exit void (*_atexitf[_ATEXIT_MAX])(void); void exit(int status) { void (**bp)(void); for (bp = _atexitf; bp < &_atexitf[_ATEXIT_MAX] && *bp; ++bp) (*bp)(); _Exit(status); }