Updated: April 19, 2023 |
Test a wide character to see if it's any printable character, including space
#include <wctype.h> int iswprint( wint_t wc );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The iswprint() function tests if the argument wc is a printable wide character of the class print. In the C locale, this class consists of all the printable characters, including the space character.
A nonzero value if the character is a member of the class print, 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.