shithub: scc

ref: 9332f34cf7bae72b9ccaa290cae5a1eec3f34f3d
dir: /src/libc/stdlib/exit.c/

View raw version
#include <stdlib.h>
#undef exit

void (*_exitf[_ATEXIT_MAX])(void);
unsigned _exitn;

void
exit(int status)
{
	while (_exitn > 0)
		(*_exitf[--_exitn])();
	_Exit(status);
}