5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
9 #define _PDCLIB_INT_H _PDCLIB_INT_H
10 #include <_PDCLIB_int.h>
14 int _PDCLIB_errno = 0;
16 int * _PDCLIB_errno_func()
18 return &_PDCLIB_errno;
21 /* TODO: Doing this via a static array is not the way to do it. */
22 char const * _PDCLIB_errno_texts[] = {
24 "ERANGE (Range error)",
25 "EDOM (Domain error)",
27 "EUNKNOWN (Unknown error)",
28 "EINVAL (Invalid parameter value)",
29 "ERETRY (I/O retries exceeded)"
35 #include <_PDCLIB_test.h>
42 TESTCASE( errno == 0 );
44 TESTCASE( errno == EDOM );
46 TESTCASE( errno == ERANGE );