]> pd.if.org Git - pdclib/blob - functions/stdlib/atexit.c
Re-import from Subversion.
[pdclib] / functions / stdlib / atexit.c
1 /* ----------------------------------------------------------------------------
2  * $Id$
3  * ----------------------------------------------------------------------------
4  * Public Domain C Library - http://pdclib.sourceforge.net
5  * This code is Public Domain. Use, modify, and redistribute at will.
6  * --------------------------------------------------------------------------*/
7
8 int atexit( void (*func) ( void ) ) { /* TODO */ };
9
10 /* PDPC code - unreviewed
11 {
12     int x;
13     
14     for (x = 0; x < __NATEXIT; x++)
15     {
16         if (__userExit[x] == 0)
17         {
18             __userExit[x] = func;
19             return (0);
20         }
21     }
22     return (-1);
23 }
24 */