summaryrefslogtreecommitdiff
path: root/src/ctype/iswpunct.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctype/iswpunct.c')
-rw-r--r--src/ctype/iswpunct.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ctype/iswpunct.c b/src/ctype/iswpunct.c
index 16e8703b..d8801046 100644
--- a/src/ctype/iswpunct.c
+++ b/src/ctype/iswpunct.c
@@ -1,4 +1,5 @@
#include <wctype.h>
+#include "libc.h"
static const unsigned char table[] = {
#include "punct.h"
@@ -10,3 +11,10 @@ int iswpunct(wint_t wc)
return (table[table[wc>>8]*32+((wc&255)>>3)]>>(wc&7))&1;
return 0;
}
+
+int __iswpunct_l(wint_t c, locale_t l)
+{
+ return iswpunct(c);
+}
+
+weak_alias(__iswpunct_l, iswpunct_l);