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