master xplshn/aruu / shared / libutf / iscntrlrune.c
 1/* Automatically generated by mkrunetype.awk */
 2#include <stdlib.h>
 3
 4#include "../utf.h"
 5#include "runetype.h"
 6
 7static const Rune cntrl2[][2] = {
 8	{ 0x0000, 0x001F },
 9	{ 0x007F, 0x009F },
10};
11
12int
13iscntrlrune(Rune r)
14{
15	if(bsearch(&r, cntrl2, nelem(cntrl2), sizeof *cntrl2, &rune2cmp))
16		return 1;
17	return 0;
18}