Added a test for MUIA_Listview_SelectChange.
[AROS.git] / compiler / stdc / _exit.c
blob13349cde39c2b7694146dfcc85c0b0629af3ed25
1 /*
2 Copyright © 2003-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function _Exit().
6 */
8 #include <libraries/stdc.h>
10 #include <assert.h>
12 /*****************************************************************************
14 NAME */
15 #include <stdlib.h>
17 void _Exit (
19 /* SYNOPSIS */
20 int code)
22 /* FUNCTION
23 Terminates the running program immediately. The code is returned to
24 the program which has called the running program. In contrast to
25 exit(), this function does not call user exit-handlers added with
26 atexit() or on_exit(). It does, however, close open filehandles.
28 INPUTS
29 code - Exit code. 0 for success, other values for failure.
31 RESULT
32 None. This function does not return.
34 NOTES
35 This function must not be used in a shared library or in a threaded
36 application.
38 EXAMPLE
40 BUGS
42 SEE ALSO
43 exit()
45 INTERNALS
47 ******************************************************************************/
49 __stdc_jmp2exit(0, code);
51 /* never reached */
52 assert(0);
53 } /* _exit */