summaryrefslogtreecommitdiff
path: root/lib/string/index.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string/index.c')
-rw-r--r--lib/string/index.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/string/index.c b/lib/string/index.c
deleted file mode 100644
index 8f6894c..0000000
--- a/lib/string/index.c
+++ /dev/null
@@ -1,11 +0,0 @@
-/* SPDX-License-Identifier: MIT */
-/* Derived from musl libc (Copyright © 2005-2020 Rich Felker, et al.) */
-
-#define _BSD_SOURCE
-#include <string.h>
-#include <strings.h>
-
-char *index(const char *s, int c)
-{
- return strchr(s, c);
-}