C examples for wctype.h:wctrans_t
data type
<cwctype> <wctype.h>
Wide character transformation
#include <stdio.h> #include <wctype.h> int main ()/*from w w w . j ava 2 s. c om*/ { int i=0; wchar_t str[] = L"Test String.\n"; wchar_t c; wctype_t check = wctype("lower"); wctrans_t trans = wctrans("toupper"); while (str[i]) { c = str[i]; if (iswctype(c,check)) c = towctrans(c,trans); putwchar (c); i++; } return 0; }