5 /* atexit( void (*)( void ) )
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 extern struct _PDCLIB_exitfunc_t * regstack;
24 int atexit( void (*func)( void ) )
26 struct _PDCLIB_exitfunc_t * regfunc = (struct _PDCLIB_exitfunc_t *)malloc( sizeof( struct _PDCLIB_exitfunc_t ) );
27 if ( regfunc == NULL )
34 regfunc->next = regstack;
43 #include <_PDCLIB_test.h>
47 int NO_TESTDRIVER = 0;
49 TESTCASE( NO_TESTDRIVER );