[Previous] [Contents] [Next]

iswalnum()

Test for character classes

Synopsis:

#include <wctype.h>

int iswalnum( wint_t wc );

Library:

libc

Description:

The iswalnum() function tests if the argument wc is an alphanumeric wide character of the class alpha or digit. In the C locale, they are: a to z, A to Z, 0 to 9.

Returns:

=/= 0
The character is a member of the class alpha or digit.
0
Everything else.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler Yes
Signal handler Yes
Thread Yes

Caveats:

The result is valid only for char arguments and WEOF.

See also:

setlocale()

"Character manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]