当然有:#include <string.h>char *strstr(const char *haystack, const char *needle);ReturnIt returns a pointer into the string haystack that is the first character ofthe substring, or a null pointer if no match was found. If needle is an emptystring, the function returns haystack.DescriptionThis is like strchr() , except that it searches haystack for a substringneedle rather than just a single character.顺便,如果你自己写不出这样的函数,不建议你继续学习C。