如果 c 確實是空白字元,則返回一個非零值(即true) 如果c確實是可列印字元。零(即false)。
示例
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/* iswprint example */
#include <stdio.h>
#include <wctype.h>
int main ()
{
int i=0;
wchar_t str[] = L"first line \n second line \n";
while (iswprint(str[i]))
{
putwchar (str[i]);
i++;
}
return 0;
}