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: Required by both atexit() and exit(). */
16 struct _PDCLIB_exitfunc_t
18 struct _PDCLIB_exitfunc_t * next;
22 struct _PDCLIB_exitfunc_t * regstack = NULL;
24 void exit( int status )
26 struct _PDCLIB_exitfunc_t * next = regstack;
27 while ( next != NULL )
30 regstack = next->next;
34 /* TODO: Flush and close open streams. Remove tmpfile() files. */
41 #include <_PDCLIB_test.h>
45 int NO_TESTDRIVER = 0;
47 TESTCASE( NO_TESTDRIVER );