]> pd.if.org Git - pdclib.old/blobdiff - functions/ctype/isdigit.c
PDCLIB-1 PDCLIB-2 PDCLIB-9 PDCLIB-12: Add thread specific locale support; migrate...
[pdclib.old] / functions / ctype / isdigit.c
index eeeffb874993b3c86204d5e0567870cf3c281235..36be03728f961d400316e2591faf8bcc8509a809 100644 (file)
@@ -9,10 +9,11 @@
 #include <ctype.h>
 
 #ifndef REGTEST
+#include <_PDCLIB_locale.h>
 
 int isdigit( int c )
 {
-    return ( _PDCLIB_locale_info.ctype[c].flags & _PDCLIB_CTYPE_DIGIT );
+    return ( _PDCLIB_threadlocale()->_CType[c].flags & _PDCLIB_CTYPE_DIGIT );
 }
 
 #endif