#include <stdio.h>
void remove_all_ch_from_s(char s[], int ch);
int main(void)
{
char s[] = "the new c ide";
remove_all_ch_from_s(s, 'e');
puts(s);
return 0;
}
void remove_all_ch_from_s(char s[], int ch)
{
int i, j;
for (i = j = 0; s[i] != '\0'; i++)
if (s[i] != ch)
s[j++] = s[i];
s[j] = '\0';
}
/*
run:
th nw c id
*/