1 #include <wchar.h> 2 #include <wctype.h> 3 iswcntrl(wint_t wc)4 int iswcntrl(wint_t wc) 5 { 6 return (unsigned)wc < 32 7 || (unsigned)(wc-0x7f) < 33 8 || (unsigned)(wc-0x2028) < 2 9 || (unsigned)(wc-0xfff9) < 3; 10 } 11