aboutsummaryrefslogtreecommitdiff
path: root/system/lib/libc/musl/src/string/index.c
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2014-03-16 04:02:08 +0200
committerJukka Jylänki <jujjyl@gmail.com>2014-03-28 23:06:17 -0400
commitc4363b595cb2529345e3248b1f374595e83953ff (patch)
tree6bb97280c031f57a87c886bef10cd691fe60cbc7 /system/lib/libc/musl/src/string/index.c
parent4fc97c69d66a81e93849ebbff1f6eed8be7dd174 (diff)
Migrate to using musl 0.9.13 strchr, strrchr, index and rindex for better asm.js performance.
Diffstat (limited to 'system/lib/libc/musl/src/string/index.c')
-rw-r--r--system/lib/libc/musl/src/string/index.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/system/lib/libc/musl/src/string/index.c b/system/lib/libc/musl/src/string/index.c
new file mode 100644
index 00000000..dd611251
--- /dev/null
+++ b/system/lib/libc/musl/src/string/index.c
@@ -0,0 +1,7 @@
+#include <string.h>
+#include <strings.h>
+
+char *index(const char *s, int c)
+{
+ return strchr(s, c);
+}