]> pd.if.org Git - pdclib/blob - platform/example/functions/_PDCLIB/_PDCLIB_Exit.c
Cosmetic comment fixes.
[pdclib] / platform / example / 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
16 void _PDCLIB_Exit( int status )
17 {
18     errno = ENOTSUP;
19 }
20
21 #endif
22
23 #ifdef TEST
24 #include "_PDCLIB_test.h"
25
26 int main( void )
27 {
28     int UNEXPECTED_RETURN = 0;
29     _PDCLIB_Exit( 0 );
30     TESTCASE( UNEXPECTED_RETURN );
31     return TEST_RESULTS;
32 }
33
34 #endif