#include<stdio h=""> #include<windows h=""> const char *x_strstr(const char *str, const char *s) { for (int i = 0; str[i] != '\0'; i++) { int temp = i; int j = 0; while (str[i++] == s[j++]) { if (sub_str[j] == '\0') { return &s[tem]; } } i = temp; } return NULL; } int main() { char arr1[]= "1233345acda"; char arr2[] = "23"; printf("%s\n",x_strstr(arr1, arr2)); system("pause"); return 0; } </windows></stdio></windows></stdio>