Test a wide character to see if it's any punctuation character
#include <wctype.h> int iswpunct( wint_t wc );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The iswpunct() function tests if the argument wc is a punctuation wide character of the class punct. In the C locale, this class includes the comma (,) and the period (.), among others.
A nonzero value if the character is a member of the class punct, or 0 otherwise.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
The result is valid only for wchar_t arguments and WEOF.
ispunct(), iswalnum(), iswalpha(), iswcntrl(), iswctype(), iswdigit(), iswgraph(), iswlower(), iswprint(), iswspace(), iswupper(), iswxdigit(), setlocale()