towlower - C wctype.h

C examples for wctype.h:towlower

Type

function

From


<cwctype>
<wctype.h>

Description

Convert uppercase wide character to lowercase

Prototype

wint_t towlower ( wint_t c );

Parameters

Parameter Description
c Wide character to be converted

Return Value

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

Demo Code


#include <stdio.h>
#include <wctype.h>
int main ()/*  w  w  w .  ja  va 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 (towlower(c));
    i++;
  }
  return 0;
}

Related Tutorials