summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-17 02:24:26 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-11-17 02:24:26 +0000
commit9f4eba899048a9adc72eae59e3b39474e06cab7f (patch)
tree3dd676b5693c8cf1848f75650b446f925e3203d2 /libc
parent67f62274d2b2c1406ef8bd444a219043e22afabf (diff)
downloaduClibc-alpine-9f4eba899048a9adc72eae59e3b39474e06cab7f.tar.bz2
uClibc-alpine-9f4eba899048a9adc72eae59e3b39474e06cab7f.tar.xz
Copy from trunk.
Diffstat (limited to 'libc')
-rw-r--r--libc/string/strtok_r.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/string/strtok_r.c b/libc/string/strtok_r.c
new file mode 100644
index 000000000..ac86cb168
--- /dev/null
+++ b/libc/string/strtok_r.c
@@ -0,0 +1,19 @@
+/*
+ * 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 Wstrtok_r __strtok_r
+
+#undef Wstrspn
+#define Wstrspn strspn
+#undef Wstrpbrk
+#define Wstrpbrk strpbrk
+
+#include "wstring.c"
+
+strong_alias(__strtok_r, strtok_r)
+
+#undef L_strtok_r