C++程序  |  11行  |  179 B

/*
 * strstr.c
 */

#include <string.h>

char *strstr(const char *haystack, const char *needle)
{
    return (char *)memmem(haystack, strlen(haystack), needle, strlen(needle));
}