hello guys today i had problem in my squeeze function i dunno why it does not change anything i even tested with debug code it worked well i m trying to delete every characters from string that match the other string
Code:void Squeeze(char *in,char *save) { int i,x,j; i=x=j=0; while(in[x]!=save[i]){ puts("While loop is ran!"); in[j]=in[x]; i++;x++;j++; } } int main(void) { char name[]="HELLO WORLD"; Squeeze(name,"WORLD"); puts(name); return getchar(); }