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