7 This file is part of the Public Domain C Library (PDCLib).
8 Permission is granted to use, modify, and / or redistribute at will.
15 /* TODO - "except that a function is called after any previously registered
16 functions that had already been called at the time it was registered.
19 struct _PDCLIB_exitfunc_t * regstack = NULL;
21 void exit( int status )
23 struct _PDCLIB_exitfunc_t * next = regstack;
24 while ( next != NULL )
27 regstack = next->next;
37 #include <_PDCLIB_test.h>
42 /* Unwinding of regstack tested in atexit(). */