iswlower - C wctype.h

C examples for wctype.h:iswlower

Type

function

From


<cwctype>
<wctype.h>

Description

Check if wide character is lowercase letter

Prototype

int iswlower (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 lowercase letter. Zero (i.e., false) otherwise.

Demo Code


#include <stdio.h>
#include <wctype.h>
int main ()// ww  w . ja  v  a  2s  . com
{
  int i=0;
  wchar_t str[] = L"Test String.\n";
  wchar_t c;
  while (str[i])
  {
    c = str[i];
    if (iswlower(c)) 
       c=towupper(c);
    putwchar (c);
    i++;
  }
  return 0;
}

Related Tutorials