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))
|
#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
|
* Name: isdigit
|
||||||
*
|
*
|
||||||
|
|
|
@ -55,6 +55,7 @@
|
||||||
#undef isprint
|
#undef isprint
|
||||||
#undef ispunct
|
#undef ispunct
|
||||||
#undef isspace
|
#undef isspace
|
||||||
|
#undef isblank
|
||||||
#undef isupper
|
#undef isupper
|
||||||
#undef isxdigit
|
#undef isxdigit
|
||||||
#undef tolower
|
#undef tolower
|
||||||
|
|
Loading…
Reference in New Issue