Root/
Source at commit 1296 created 12 years 9 months ago. By meklort, Add bcopy / sprintf to klibc | |
---|---|
1 | /*␊ |
2 | * strstr.c␊ |
3 | */␊ |
4 | ␊ |
5 | #include <string.h>␊ |
6 | void *memmem(const void *haystack, size_t n, const void *needle, size_t m);␊ |
7 | char *strstr(const char *haystack, const char *needle)␊ |
8 | {␊ |
9 | ␉return (char *)memmem(haystack, strlen(haystack), needle,␊ |
10 | ␉␉␉ strlen(needle));␊ |
11 | }␊ |
12 |