]> pd.if.org Git - pdclib/blob - functions/stdlib/_Exit.c
Porting current working set from CVS.
[pdclib] / functions / stdlib / _Exit.c
1 /* $Id$ */
2
3 /* Release $Name$ */
4
5 /* _Exit( int )
6
7    This file is part of the Public Domain C Library (PDCLib).
8    Permission is granted to use, modify, and / or redistribute at will.
9 */
10
11 #include <stdlib.h>
12 #include <_PDCLIB_glue.h>
13
14 #ifndef REGTEST
15
16 void _Exit( int status )
17 {
18     /* TODO: Flush and close open streams. Remove tmpfile() files. */
19     _PDCLIB_Exit( status );
20 }
21
22 #endif
23
24 #ifdef TEST
25 #include <_PDCLIB_test.h>
26
27 int main( void )
28 {
29     int UNEXPECTED_RETURN = 0;
30     _Exit( 0 );
31     TESTCASE( UNEXPECTED_RETURN );
32     return TEST_RESULTS;
33 }
34
35 #endif