Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
iswpunct.c
Go to the documentation of this file.
1 #include <wctype.h>
2 
3 static const unsigned char table[] = {
4 #include "punct.h"
5 };
6 
7 int iswpunct(wint_t wc)
8 {
9  if(wc < 0x20000U)
10  {
11  return (table[table[wc >> 8] * 32 + ((wc & 255) >> 3)] >> (wc & 7)) & 1;
12  }
13  return 0;
14 }
unsigned wint_t
Definition: wctype.h:11
int iswpunct(wint_t wc)
Definition: iswpunct.c:7
static const unsigned char table[]
Definition: iswpunct.c:3