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_DIGIT );
21 #include "_PDCLIB_test.h"
25 TESTCASE( isdigit( '0' ) );
26 TESTCASE( isdigit( '9' ) );
27 TESTCASE( ! isdigit( ' ' ) );
28 TESTCASE( ! isdigit( 'a' ) );
29 TESTCASE( ! isdigit( '@' ) );