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