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