Code:
  while(c = strstr(&s[i], from)) {  //i is the iterator for s 
    while(&s[i]!= c)                //j is the iterator for s1
    s1[j++]=s[i++];
Your indentation could use a little work Adak.

Quzah.