From e306be411d1b43b701ebff14af03f98d4ab27556 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 23 Feb 2002 13:42:45 +0000 Subject: Support isblank() --- libc/misc/ctype/ctype.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'libc/misc/ctype/ctype.c') diff --git a/libc/misc/ctype/ctype.c b/libc/misc/ctype/ctype.c index 5dc35cc72..a077dbf3c 100644 --- a/libc/misc/ctype/ctype.c +++ b/libc/misc/ctype/ctype.c @@ -118,6 +118,15 @@ isspace( int c ) } #endif +#ifdef L_isblank +#undef isblank +int +isblank( int c ) +{ + return (c == ' ' || c == '\t'); +} +#endif + #ifdef L_isupper #undef isupper int @@ -266,6 +275,15 @@ isspace( int c ) } #endif +#ifdef L_isblank +#undef isblank +int +isblank( int c ) +{ + return _UC_ISCTYPE(c, ISblank); +} +#endif + #ifdef L_isupper #undef isupper int -- cgit v1.2.3