搜索与一的strstr字符串中的字符*
答
只需提供strstr()
的指针的第一个字符在SEACH包括:
if(strstr(the_haystack + 42, "the needle") != NULL)
printf("found needle at end of haystack!\n");
当然,这个假设the_haystack
真的是长至少42个字符。
'的strstr(草堆+ 42,针)'。 – 2013-03-19 14:23:54