C examples for wctype.h:iswlower
function
<cwctype> <wctype.h>
Check if wide character is lowercase letter
int iswlower (wint_t c);
Parameter | Description |
---|---|
c | Wide character to be checked |
A non zero value (i.e., true) if c is a lowercase letter. Zero (i.e., false) otherwise.
#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; }