2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: ANSI C function exit()
9 #include "__arosc_privdata.h"
11 #include <exec/types.h>
13 #include <aros/startup.h>
15 /*****************************************************************************
26 Terminates the running program. The code is returned to the
27 program which has called the running program.
30 code - Exit code. 0 for success, other values for failure.
33 None. This function does not return.
36 This function must not be used in a shared library or
37 in a threaded application.
59 ******************************************************************************/
62 __aros_startup_error
= code
;
64 longjmp (__aros_startup_jmp_buf
, 1);