iswblank - C wctype.h

C examples for wctype.h:iswblank

Type

function

From


<cwctype>
<wctype.h>

Description

Check if wide character is blank

Prototype

int iswblank (wint_t c);

Parameters

Parameter Description
c Wide character to be checked

Return Value

A non zero value (i.e., true) if c is a blank character. Zero (i.e., false) otherwise.

Demo Code


#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;
}

Related Tutorials