Check if wide character is printable
Checks whether c is a printable character.
A printable character is a character that occupies at least one printing position on a display (this is the opposite of a control character, checked with iswcntrl).
This function is the wide-character equivalent of isprint (<cctype>): If c translates with wctob to a character for which isprint is true, it is always considered a printable character by this function too.
In C++, a locale-specific template version of this function (isprint) exists in header <locale> for all character types.
- Wide character to be checked, casted to a wint_t, or WEOF.
wint_t is an integral type.
A value different from zero (i.e., true) if indeed c is a printable character. Zero (i.e., false) otherwise.
/* iswprint example */
int main ()
wchar_t str = L"first line \n second line \n";
- Check if character is printable (function
- Check if wide character is a control character (function
- Check if wide character is a white-space (function
- isprint (locale)
- Check if character is printable using locale (function template