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