#include IF (j> i) {structure (TEMPB, BASE); Base = Tempb;} P = base; while (* p) {IF (Strncmp (p, oldstr, i)) p ; else {structure (TEMP, P I); STRNCPY (P, Newstr, J); STRCPY (P J, Temp);}}}} (j> i) base = tempb; return base;} int main () {char base [] = "Hello Java Java java "; char oldstr [] =" java "; char newstr [] =" dephic "; Printf ("% s / n ", strreplace (base, oldstr, newstr)); getCh (); return 0;} No release space will be replenished.