iswcntrl - C wctype.h

C examples for wctype.h:iswcntrl

Type

function

From


<cwctype>
<wctype.h>

Description

Check if wide character is a control character

Prototype

int iswcntrl (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 control character. Zero (i.e., false) otherwise.

Demo Code


#include <stdio.h>
#include <wctype.h>

int main ()//ww w .  j a v  a2  s  . c  om
{
  int i=0;
  wchar_t str[] = L"this is a test. first line \n second line \n";
  while (!iswcntrl(str[i]))
  {
    putwchar (str[i]);
    i++;
  }
  return 0;
}

Related Tutorials