X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Fatexit.c;h=9792cad1846968addb78e2100d0909aebd3ae916;hp=ac478c94cabff262e50606b8632018b16dec2896;hb=0a5395faab237ba9008352b0f4bee9659bbd3d5f;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec diff --git a/functions/stdlib/atexit.c b/functions/stdlib/atexit.c index ac478c9..9792cad 100644 --- a/functions/stdlib/atexit.c +++ b/functions/stdlib/atexit.c @@ -7,3 +7,19 @@ // TODO: C/C++ linkages int atexit( void (*func) ( void ) ) { /* TODO */ }; + +/* PDPC code - unreviewed +{ + int x; + + for (x = 0; x < __NATEXIT; x++) + { + if (__userExit[x] == 0) + { + __userExit[x] = func; + return (0); + } + } + return (-1); +} +*/