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 tested, passed as a `wint_t`
Read more about parameters of iswcntrl in parameters section
The iswcntrlfunction in C language Checks whether the wide character is a control character.
The iswcntrl function tests whether wc is a wide character code representing a control character. Control characters are typically non-printing characters used to control the formatting or transmission of data.
The iswcntrlfunction takes 1
parameter:
•
wint_t `wc`: The wide character to be tested, passed as a `wint_t`
Checks if the given wide character `wc` is a control character. Control characters are non-printable characters such as wide newline (`\n`), wide tab (`\t`), and other wide characters in the control range. Returns a nonzero value if `wc` is a control character, and `0` otherwise.
The iswcntrl function return value :
Returns non-zero if the wide character is a control character, 0 otherwise
Output
This example demonstrates basic usage of iswcntrl with various wide characters.