summaryrefslogtreecommitdiff
path: root/src/ctype/iscntrl.c
blob: f27837ea53c8cc732fd1478764e351c5569b4888 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <ctype.h>

int iscntrl(int c)
{
	return (unsigned)c < 0x20 || c == 0x7f;
}

int __iscntrl_l(int c, locale_t l)
{
	return iscntrl(c);
}

weak_alias(__iscntrl_l, iscntrl_l);