An integer type capable of storing any wide character value or the special value WEOF, used in wide-character input/output functions.
1st Parameter
The wide character to be converted to lowercase. Must be a valid `wint_t` value or `WEOF`.
Read more about parameters of towlower in parameters section
The towlowerfunction in C language Converts a wide character to lowercase.
The towlower function converts an uppercase wide character to the corresponding lowercase wide character. If the argument is not an uppercase letter, it is returned unchanged. This function is the wide-character counterpart of tolower and is used for case conversion in wide character text processing.
The towlowerfunction takes 1
parameter:
•
wint_t `wc`: The wide character to be converted to lowercase. Must be a valid `wint_t` value or `WEOF`.
Converts the given wide character `wc` to its lowercase equivalent if it is an uppercase letter. If `wc` is not an uppercase letter, the function returns `wc` unchanged. If `wc` is `WEOF`, the function returns `WEOF`.
The towlower function return value :
If wc is an uppercase letter, returns the corresponding lowercase letter
Otherwise, it returns wc unchanged
Output
This example demonstrates towlower on both uppercase and lowercase wide characters.