1#include <wctype.h>
2
3static const unsigned char table[] = {
4#include "punct.h"
5};
6
7int iswpunct(wint_t wc) {
8    if (wc < 0x20000U)
9        return (table[table[wc >> 8] * 32 + ((wc & 255) >> 3)] >> (wc & 7)) & 1;
10    return 0;
11}
12