summaryrefslogblamecommitdiff
path: root/src/ctype/iswcntrl.c
blob: feccfcd5bcc330c9e499c3a7e1c64bf0180018bf (plain) (tree)
1
2
3
4
5
6
7
8
9








                                         






                                      
#include <wctype.h>

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

int __iswcntrl_l(wint_t c, locale_t l)
{
	return iswcntrl(c);
}

weak_alias(__iswcntrl_l, iswcntrl_l);