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