Don't call ReadArgs() if started from WB.
[tangerine.git] / compiler / clib / atexit.c
blob89b3b58742df9170230db808d93f2ab890230ad3
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdlib.h>
7 #include "__exitfunc.h"
9 int atexit(void (*func)(void))
11 struct AtExitNode *aen = malloc(sizeof(*aen));
13 if (!aen) return -1;
15 aen->node.ln_Type = AEN_VOID;
16 aen->func.fvoid = func;
18 return __addexitfunc(aen);