Test a wide character to see if it's a whitespace character
#include <wctype.h> int iswspace( wint_t wc );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The iswspace() function tests if the argument wc is a whitespace wide character of the class space. In the C locale, this class includes the space character, \f (form feed), \n (newline or linefeed), \r (carriage return), \t (horizontal tab), and \v (vertical tab).
A nonzero value if the character is a member of the class space, 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.