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 /include | |
parent | 70b1841fb59ddade872aafcbaff416dd4ebd9a6d (diff) |
Support isblank()
Diffstat (limited to 'include')
-rw-r--r-- | include/ctype.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ctype.h b/include/ctype.h index 8f1bb9d99..a7e397e3d 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -34,6 +34,7 @@ __BEGIN_DECLS extern int isalnum(int c); extern int isalpha(int c); extern int isascii(int c); +extern int isblank(int c); extern int iscntrl(int c); extern int isdigit(int c); extern int isgraph(int c); @@ -57,6 +58,7 @@ extern int toupper(int c); #define isalnum(c) (isalpha(c) || isdigit(c)) #define isalpha(c) (isupper(c) || islower(c)) #define isascii(c) (c > 0 && c <= 0x7f) +#define isblank(c) (c == ' ' || c == '\t') #define iscntrl(c) ((c >= 0) && ((c <= 0x1F) || (c == 0x7f))) #define isdigit(c) (c >= '0' && c <= '9') #define isgraph(c) (c != ' ' && isprint(c)) |