strstr, strcat 函数的实现

strstr函数:返回主串中子字符串的位置后的所有字符。 #include <stdio.h> const char *my_strstr(const char *str, const char *sub_str) {     for(int i = 0; str[i] != '\0'; i++)     {         int tem = i; //tem保留主串中的起始判断下标位置   
相关文章
相关标签/搜索