C examples for Function:Utility Function
removes all occurrences of the character ch from the string str:
void remove(char str[], int ch) { int j, k; for(j = k = 0; str[j] != '\0'; j++) if(str[j] != ch) str[k++] = str[j]; str[k] = '\0'; }