Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
iswpunct.c File Reference
#include <wctype.h>
#include "punct.h"
Include dependency graph for iswpunct.c:

Go to the source code of this file.

Functions

int iswpunct (wint_t wc)
 

Variables

static const unsigned char table []
 

Function Documentation

◆ iswpunct()

int iswpunct ( wint_t  wc)

Definition at line 7 of file iswpunct.c.

8 {
9  if(wc < 0x20000U)
10  {
11  return (table[table[wc >> 8] * 32 + ((wc & 255) >> 3)] >> (wc & 7)) & 1;
12  }
13  return 0;
14 }
static const unsigned char table[]
Definition: iswpunct.c:3

References table.

Referenced by iswctype().

Here is the caller graph for this function:

Variable Documentation

◆ table

const unsigned char table[]
static

Definition at line 3 of file iswpunct.c.

Referenced by iswpunct().