summaryrefslogtreecommitdiff
path: root/libc/string/wcstok.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/string/wcstok.c')
-rw-r--r--libc/string/wcstok.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/libc/string/wcstok.c b/libc/string/wcstok.c
new file mode 100644
index 000000000..625ee65e8
--- /dev/null
+++ b/libc/string/wcstok.c
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
+ *
+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
+ */
+
+#define L_strtok_r
+#define WANT_WIDE
+#define Wstrtok_r __wcstok
+
+#undef Wstrspn
+#define Wstrspn __wcsspn
+#undef Wstrpbrk
+#define Wstrpbrk __wcspbrk
+
+#include "wstring.c"
+
+strong_alias(__wcstok, wcstok)
+
+#undef L_strtok_r