Add isblank() macro to ctype.h
This commit is contained in:
parent
c73d3e9c5f
commit
53700fc71f
@ -134,6 +134,16 @@
|
||||
|
||||
#define isalpha(c) (islower(c) || isupper(c))
|
||||
|
||||
/****************************************************************************
|
||||
* Name: isblank
|
||||
*
|
||||
* Description:
|
||||
* Checks for blank characters (space or tab)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#define isblank(c) (isspace(c) || (c) == '\t')
|
||||
|
||||
/****************************************************************************
|
||||
* Name: isdigit
|
||||
*
|
||||
|
@ -55,6 +55,7 @@
|
||||
#undef isprint
|
||||
#undef ispunct
|
||||
#undef isspace
|
||||
#undef isblank
|
||||
#undef isupper
|
||||
#undef isxdigit
|
||||
#undef tolower
|
||||
|
Loading…
Reference in New Issue
Block a user