summaryrefslogtreecommitdiff
path: root/src/ctype/iswcntrl.c
blob: 93942b0874c5e9a0715646ad4be2cc7cd0cdcc14 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <wchar.h>
#include <wctype.h>

int iswcntrl(wint_t wc)
{
	return (unsigned)wc < 32
	    || (unsigned)(wc-0x7f) < 33
	    || (unsigned)(wc-0x2028) < 2
	    || (unsigned)(wc-0xfff9) < 3;
}