]> pd.if.org Git - pdclib/blobdiff - functions/ctype/isspace.c
ctype
[pdclib] / functions / ctype / isspace.c
index 346167efc22cad6909d575bb7a6b7a3db1478ed5..90b6dc57ad28f45c29a4dbd60f3b1a9bebce9ccd 100644 (file)
@@ -7,24 +7,12 @@
 */
 
 #include <ctype.h>
-#include <stdbool.h>
 
 #ifndef REGTEST
 
 int isspace( int c )
 {
-    switch ( c )
-    {
-        case ' ':
-        case '\f':
-        case '\n':
-        case '\r':
-        case '\t':
-        case '\v':
-            return true;
-        default:
-            return false;
-    }
+    return ( _PDCLIB_locale_info.ctype[c].flags & _PDCLIB_CTYPE_SPACE );
 }
 
 #endif