]> pd.if.org Git - pdclib.old/blobdiff - functions/_PDCLIB/digits.c
Merged branch stdio_rewrite back into trunk.
[pdclib.old] / functions / _PDCLIB / digits.c
index 3963f8b28b52729254ba4648058262075f65b728..940e962bd943f55e2d9469339621af72bbeba0e3 100644 (file)
@@ -6,14 +6,26 @@
    Permission is granted to use, modify, and / or redistribute at will.
 */
 
-char _PDCLIB_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+#ifndef _PDCLIB_INT_H
+#define _PDCLIB_INT_H _PDCLIB_INT_H
+#include <_PDCLIB_int.h>
+#endif
+
+char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
+
+/* For _PDCLIB/print.c only; obsolete with ctype.h */
+char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
 
 #ifdef TEST
+#include <_PDCLIB_test.h>
+
+#include <string.h>
 
 int main( void )
 {
-    /* no tests for raw data */
-    return 0;
+    TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 );
+    TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 );
+    return TEST_RESULTS;
 }
 
 #endif