1 2 3 4 5 6 7 8 9 10
/* * strstr.c */ #include <string.h> char *strstr(const char *haystack, const char *needle) { return (char *)memmem(haystack, strlen(haystack), needle, strlen(needle)); }