int searchANDreplace( char *str, char *w, char *s ) { /*return the first position*/
unsigned int istr, iw, is, temp, temp2;
unsigned int times=0;
int s_w;
char tc;
if( strlen(str)<1 ) { /* str 为空 */
printf(" str is empty! ");
return times;
}
if( strlen(w)<1 ) { /* w 为空(注:“空”不是”空格“) */
printf(" w is empty! ");
return times;
}