]> pd.if.org Git - pdclib/blob - functions/stdlib/atexit.c
9792cad1846968addb78e2100d0909aebd3ae916
[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 // TODO: C/C++ linkages
9 int atexit( void (*func) ( void ) ) { /* TODO */ };
10
11 /* PDPC code - unreviewed
12 {
13     int x;
14     
15     for (x = 0; x < __NATEXIT; x++)
16     {
17         if (__userExit[x] == 0)
18         {
19             __userExit[x] = func;
20             return (0);
21         }
22     }
23     return (-1);
24 }
25 */