iswupper - C wctype.h

C examples for wctype.h:iswupper

Type

function

From


<cwctype>
<wctype.h>

Description

Check if wide character is uppercase letter

Prototype

int iswupper (wint_t c);

Parameters

Parameter Description
c Wide character to be checked

Return Value

A non zero value (i.e., true) if c is an uppercase letter. Zero (i.e., false) otherwise.

Demo Code


#include <stdio.h>
#include <wctype.h>
int main ()/*w  w w . j ava 2  s .c  o  m*/
{
  int i=0;
  wchar_t str[] = L"Test String.\n";
  wchar_t c;
  while (str[i])
  {
    c = str[i];
    if (iswupper(c)) c=towlower(c);
    putwchar (c);
    i++;
  }
  return 0;
}

Related Tutorials