Add isblank() macro to ctype.h

This commit is contained in:
Alan Carvalho de Assis 2016-10-19 07:22:13 -06:00 committed by Gregory Nutt
parent c73d3e9c5f
commit 53700fc71f
2 changed files with 11 additions and 0 deletions

View File

@ -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
* *

View File

@ -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