]> pd.if.org Git - pdclib/blob - functions/_PDCLIB/_PDCLIB_digits.c
PDCLib includes with quotes, not <>.
[pdclib] / functions / _PDCLIB / _PDCLIB_digits.c
1 /* _PDCLIB_digits
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 #ifndef REGTEST
8 #include "_PDCLIB_int.h"
9 #endif
10
11 char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
12
13 /* For _PDCLIB/print.c only; obsolete with ctype.h */
14 char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
15
16 #ifdef TEST
17 #include "_PDCLIB_test.h"
18
19 #include <string.h>
20
21 int main( void )
22 {
23 #ifndef REGTEST
24     TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 );
25     TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 );
26 #endif
27     return TEST_RESULTS;
28 }
29
30 #endif