#include #include int main(void) { char a[101]; char read[8]; char *goal = "treeone"; char *input = "forest"; char *p; scanf("%s", a); for (int i = 0; i < 100; i++) { p = strstr(a, *goal); do { *(p++) = *(input++); } while(*(goal) != '\0'); *(p + 7) = '\0'; } return 0; }