Name
iswblank
Synopsis
Ascertains whether a given wide character is a space or tab character
#include <wctype.h> intiswblank
( wint_twc
);
The iswblank()
function is
the wide-character version of the isblank()
character classification
function. It tests whether its wide character argument is either a
space or a tab character. In the default locale C
, iswblank()
returns a nonzero value (that
is, true
) only for the argument
values L' '
(space) and L'\t'
(horizontal tab); these are called
the standard blank wide characters. In other locales, iswblank()
may also be true for other wide
characters for which iswspace()
also returns true
.
Example
See the example for iswalpha()
in this
chapter.
See Also
The corresponding function for byte characters, isblank()
; iswalnum()
, iswalpha()
, iswcntrl()
, iswdigit()
, iswgraph()
, iswlower()
, iswprint()
, iswpunct()
, iswspace()
, iswupper()
, iswxdigit()
, setlocale()
; the
extensible wide-character classification function, iswctype()
Get C in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.