2 Copyright © 1995-2002, The AROS Development Team. All rights reserved.
7 #include "__exitfunc.h"
9 int on_exit(void (*func
)(int, void *), void *arg
)
11 struct AtExitNode
*aen
= malloc(sizeof(*aen
));
15 aen
->node
.ln_Type
= AEN_PTR
;
16 aen
->func
.fptr
= func
;
19 return __addexitfunc(aen
);