aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

iscntrlrune.c (317B)


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