squeeze

void squeeze(char string[], int ch)
{
int i, j;
for (i = j = ; string[i] != '\0'; i++) {
if (string[i] != ch)
string[j++] = string[i];
}
string[j] = '\0';
}
04-28 16:38