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 iswpunct in parameters section
The iswpunctfunction in C language Checks whether the wide character is a punctuation mark.
The iswpunct function tests whether wc is a wide character code representing a punctuation character. In many locales, this includes all printing characters that are neither alphanumeric nor space.
The iswpunctfunction 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 punctuation wide character. Punctuation characters are printable characters that are neither alphanumeric nor whitespace. Returns a nonzero value if `wc` is a punctuation character, and `0` otherwise.
The iswpunct function return value :
Returns non-zero if the wide character is a punctuation mark, 0 otherwise
Output
This example demonstrates basic usage of iswpunct with various wide characters, including non-ASCII punctuation.