towupper - C wctype.h

C examples for wctype.h:towupper

Type

function

From


<cwctype>
<wctype.h>

Description

Convert lowercase wide character to uppercase

Prototype

wint_t towupper (wint_t c);

Parameters

Parameter Description
c Wide character to be converted

Return Value

The uppercase equivalent to c, if such value exists, or c (unchanged) otherwise.

Demo Code


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

Related Tutorials