diff options
Diffstat (limited to 'src/ctype/ispunct.c')
-rw-r--r-- | src/ctype/ispunct.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ctype/ispunct.c b/src/ctype/ispunct.c new file mode 100644 index 00000000..fc455352 --- /dev/null +++ b/src/ctype/ispunct.c @@ -0,0 +1,6 @@ +#include <ctype.h> + +int ispunct(int c) +{ + return isgraph(c) && !isalnum(c); +} |