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