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`
2nd Parameter Type : wctype_t
A data type used to represent a character classification descriptor. This descriptor is used with functions like `iswctype` to test wide characters against specific character classes.
2nd Parameter
A character classification descriptor, typically obtained from the `wctype` function
Read more about parameters of iswctype in parameters section
The iswctypefunction in C language Checks whether the wide character conforms to the specified type.
The iswctype function determines whether the wide character wc has the property described by desc. The desc argument must be a character property descriptor returned by the wctype function.
The iswctypefunction takes 2
parameters:
•
wint_t `wc`: The wide character to be tested, passed as a `wint_t`
•
wctype_t `desc`: A character classification descriptor, typically obtained from the `wctype` function
Checks whether the given wide character `wc` belongs to the character class specified by the `desc` descriptor. Returns a nonzero value if `wc` matches the class, and `0` otherwise.
The iswctype function return value :
Returns non-zero if the wide character has the specified property, 0 otherwise
Output
This example demonstrates basic usage of iswctype with alphabetic and digit properties for various wide characters.