]> pd.if.org Git - pdclib/blob - platform/win32/functions/_PDCLIB/_PDCLIB_Exit.c
Corrected _PDCLIB_CHAR_SIGNED comment.
[pdclib] / platform / win32 / functions / _PDCLIB / _PDCLIB_Exit.c
1 /* _PDCLIB_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 /* This is a stub implementation of _PDCLIB_Exit
8 */
9
10 #include <stdlib.h>
11
12 #ifndef REGTEST
13 #include "_PDCLIB_glue.h"
14 #include <errno.h>
15 #include <windows.h>
16
17 void _PDCLIB_Exit( int status )
18 {
19     ExitProcess( status );
20 }
21
22 #endif
23
24 #ifdef TEST
25 #include "_PDCLIB_test.h"
26
27 int main( void )
28 {
29 #ifndef REGTEST
30     int UNEXPECTED_RETURN = 0;
31     _PDCLIB_Exit( 0 );
32     TESTCASE( UNEXPECTED_RETURN );
33 #endif
34     return TEST_RESULTS;
35 }
36
37 #endif