5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
17 return ( _PDCLIB_lconv.ctype[c].flags & _PDCLIB_CTYPE_XDIGT );
23 #include <_PDCLIB_test.h>
27 TESTCASE( isxdigit( '0' ) );
28 TESTCASE( isxdigit( '9' ) );
29 TESTCASE( isxdigit( 'a' ) );
30 TESTCASE( isxdigit( 'f' ) );
31 TESTCASE( ! isxdigit( 'g' ) );
32 TESTCASE( isxdigit( 'A' ) );
33 TESTCASE( isxdigit( 'F' ) );
34 TESTCASE( ! isxdigit( 'G' ) );
35 TESTCASE( ! isxdigit( '@' ) );
36 TESTCASE( ! isxdigit( ' ' ) );