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