3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
11 #include "_PDCLIB_locale.h"
13 /* TODO: Doing this via a static array is not the way to do it. */
14 char * strerror( int errnum )
16 if ( errnum >= _PDCLIB_ERRNO_MAX )
18 return (char *)"Unknown error";
22 return (char *)_PDCLIB_threadlocale()->_ErrnoStr[errnum];
29 #include "_PDCLIB_test.h"
36 TESTCASE( strerror( ERANGE ) != strerror( EDOM ) );