]> pd.if.org Git - pdclib/blob - functions/_PDCLIB/errno.c
Comment cleanups.
[pdclib] / functions / _PDCLIB / errno.c
1 /* _PDCLIB_errno
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 <_PDCLIB_int.h>
8
9 #ifndef REGTEST
10
11 int _PDCLIB_errno = 0;
12
13 int * _PDCLIB_errno_func()
14 {
15     return &_PDCLIB_errno;
16 }
17
18 #endif
19
20 #ifdef TEST
21 #include <_PDCLIB_test.h>
22
23 #include <errno.h>
24
25 int main( void )
26 {
27     errno = 0;
28     TESTCASE( errno == 0 );
29     errno = EDOM;
30     TESTCASE( errno == EDOM );
31     errno = ERANGE;
32     TESTCASE( errno == ERANGE );
33     return TEST_RESULTS;
34 }
35
36 #endif
37