]> pd.if.org Git - pdclib/blob - functions/_PDCLIB/_PDCLIB_digits.c
Moving branches closer together.
[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
9 #include "_PDCLIB_int.h"
10
11 const char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
12
13 /* For _PDCLIB/print.c only; obsolete with ctype.h */
14 const char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
15
16 #endif
17
18 #ifdef TEST
19
20 #include "_PDCLIB_test.h"
21
22 #include <string.h>
23
24 int main( void )
25 {
26 #ifndef REGTEST
27     TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 );
28     TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 );
29 #endif
30     return TEST_RESULTS;
31 }
32
33 #endif