C examples for wctype.h:iswblank
function
<cwctype> <wctype.h>
Check if wide character is blank
int iswblank (wint_t c);
Parameter | Description |
---|---|
c | Wide character to be checked |
A non zero value (i.e., true) if c is a blank character. Zero (i.e., false) otherwise.
#include <stdio.h> #include <wctype.h> int main ()//from w ww .j ava 2 s . c o m { wchar_t c; int i=0; wchar_t str[] = L"this is a test 1234\n"; while (str[i]) { c = str[i]; if (iswblank(c)) c = L'\n'; putwchar (c); i++; } return 0; }