]> pd.if.org Git - pdclib/blob - functions/stdlib/_Exit.c
Added test driver.
[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 #define _PDCLIB_CONFIG_H _PDCLIB_CONFIG_H
12 #include <_PDCLIB_config.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()
28 {
29     BEGIN_TESTS;
30     /* TODO: Add testdrivers after flush / close / tmpfile is implemented. */
31     return TEST_RESULTS;
32 }
33
34 #endif