summaryrefslogtreecommitdiff
path: root/klibc/klibc/strstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'klibc/klibc/strstr.c')
-rw-r--r--klibc/klibc/strstr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/klibc/klibc/strstr.c b/klibc/klibc/strstr.c
new file mode 100644
index 0000000000..10222dfd30
--- /dev/null
+++ b/klibc/klibc/strstr.c
@@ -0,0 +1,10 @@
+/*
+ * strstr.c
+ */
+
+#include <string.h>
+
+char *strstr(const char *haystack, const char *needle)
+{
+ return (char *)memmem(haystack, strlen(haystack), needle, strlen(needle));
+}