old-libc-kernel/ctype/isPunct.cpp

7 lines
149 B
C++
Raw Normal View History

2016-07-27 13:03:34 +00:00
#include <ctype.h>
#include "_ctype.h"
#include <assert.h>
extern "C" int ispunct(int c) {
assert(c<256);
return ascii_table[c] & (SYMBOL);
}