OpenBSD manual page server

Manual Page Search Parameters

ISWALNUM(3) Library Functions Manual ISWALNUM(3)

iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigitwide-character classification utilities

#include <wctype.h>

int
iswalnum(wint_t wc);

int
iswalpha(wint_t wc);

int
iswblank(wint_t wc);

int
iswcntrl(wint_t wc);

int
iswdigit(wint_t wc);

int
iswgraph(wint_t wc);

int
iswlower(wint_t wc);

int
iswprint(wint_t wc);

int
iswpunct(wint_t wc);

int
iswspace(wint_t wc);

int
iswupper(wint_t wc);

int
iswxdigit(wint_t wc);

The functions are character classification utility functions, for use with wide characters (wchar_t or wint_t). See the description of singlebyte classification functions, like isalnum(3), for details.

The functions return zero if the character tests false and return non-zero if the character tests true.

isalnum(3), isalpha(3), isblank(3), iscntrl(3), isdigit(3), isgraph(3), islower(3), isprint(3), ispunct(3), isspace(3), isupper(3), isxdigit(3)

The functions conform to ISO/IEC 9899:1999 (“ISO C99”).

The argument to these functions must be WEOF or a valid wchar_t value with the current locale; otherwise, the result is undefined.

In a UTF-8 locale these functions return wrong answers for some characters because they do not cover the entire Unicode character set.

June 5, 2013 OpenBSD-6.1