C examples for wctype.h:towlower
function
<cwctype> <wctype.h>
Convert uppercase wide character to lowercase
wint_t towlower ( wint_t c );
Parameter | Description |
---|---|
c | Wide character to be converted |
The lowercase equivalent to c, if such value exists, or c (unchanged) otherwise.
#include <stdio.h> #include <wctype.h> int main ()/* w w w . ja va 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 (towlower(c)); i++; } return 0; }