]> 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 8c0a4f3164ef6a536d86802b6fae841e9b567e62..ebb1f47be7f65208098097a0755e299e108c1221 100644 (file)
@@ -9,12 +9,11 @@
 #include <ctype.h>
 
 #ifndef REGTEST
-
-#include <locale.h>
+#include <_PDCLIB_locale.h>
 
 int iscntrl( int c )
 {
-    return ( _PDCLIB_lconv.ctype[c].flags & _PDCLIB_CTYPE_CNTRL );
+    return ( _PDCLIB_threadlocale()->_CType[c].flags & _PDCLIB_CTYPE_CNTRL );
 }
 
 #endif