i dunno im sure this output the good result i dont understand why it got not the output that i want
#include <stdio.h>
void Squeeze2(char *str,char *save)
{
int i,x;
int buffer=0;//used to save stuff
for( i=0 , x=0 ; str[i]!=0 && save[x]!=0 ; i++, x++ ) {
if( str[i]!=save[x] ) {
str[buffer]=str[i];
buffer++;
}
}
}
int main(void)
{
char name[]="NAME";
Squeeze2(name,"NAM");
puts(name);
return getchar();
}