C examples for wctype.h:towupper
function
<cwctype> <wctype.h>
Convert lowercase wide character to uppercase
wint_t towupper (wint_t c);
Parameter | Description |
---|---|
c | Wide character to be converted |
The uppercase equivalent to c, if such value exists, or c (unchanged) otherwise.
#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; }