Tests for membership in subsets of the wide-character set.
#include <wctype.h> int iswalnum(wint_t c); int iswalpha(wint_t c); int iswblank(wint_t c); int iswcntrl(wint_t c); int iswdigit(wint_t c); int iswgraph(wint_t c); int iswlower(wint_t c); int iswprint(wint_t c); int iswpunct(wint_t c); int iswspace(wint_t c); int iswupper(wint_t c); int iswxdigit(wint_t c);
c
A wide-character value to test.
These functions provide the same facilities as their counterparts in the ctype.h header file. However, these functions test wide characters and the EOF value.
The c argument is of type wint_t so that the EOF value, which is outside the range of the wchar_t type, may also be tested.
| Function | ctype.h Equivalent |
|---|---|
| iswalnum(c) | isalnum(c) |
| iswalpha(c) | isalpha(c) |
| iswblank(c) | isblank(c) |
| iswcntrl(c) | iscntrl(c) |
| iswdigit(c) | isdigit(c) |
| iswgraph(c) | isgraph(c) |
| iswlower(c) | islower(c) |
| iswprint(c) | isprint(c) |
| iswpunct(c) | ispunct(c) |
| iswspace(c) | isspace(c) |
| iswupper(c) | isupper(c) |
| iswxdigit(c) | isxdigit(c) |