toaruos/libc/ctype/ispunct.c

6 lines
81 B
C

#include <ctype.h>
int ispunct(int c) {
return isgraph(c) && !isalnum(c);
}