diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-02-23 13:42:45 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-02-23 13:42:45 +0000 |
commit | e306be411d1b43b701ebff14af03f98d4ab27556 (patch) | |
tree | e29ac775fcc1300d1336666a3b4824699244639f /libc/misc/ctype/ctype.c | |
parent | 70b1841fb59ddade872aafcbaff416dd4ebd9a6d (diff) |
Support isblank()
Diffstat (limited to 'libc/misc/ctype/ctype.c')
-rw-r--r-- | libc/misc/ctype/ctype.c | 18 |
1 files changed, 18 insertions, 0 deletions
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 |