]> pd.if.org Git - pdclib.old/blobdiff - functions/ctype/isspace.c
PDCLIB-1 PDCLIB-2 PDCLIB-9 PDCLIB-12: Add thread specific locale support; migrate...
[pdclib.old] / functions / ctype / isspace.c
index 346167efc22cad6909d575bb7a6b7a3db1478ed5..097a5209c50faa4b5b27b5c9a24708ef9a68e2b4 100644 (file)
@@ -7,24 +7,13 @@
 */
 
 #include <ctype.h>
-#include <stdbool.h>
 
 #ifndef REGTEST
+#include <_PDCLIB_locale.h>
 
 int isspace( int c )
 {
-    switch ( c )
-    {
-        case ' ':
-        case '\f':
-        case '\n':
-        case '\r':
-        case '\t':
-        case '\v':
-            return true;
-        default:
-            return false;
-    }
+    return ( _PDCLIB_threadlocale()->_CType[c].flags & _PDCLIB_CTYPE_SPACE );
 }
 
 #endif