Chapter-2/2-4/squeeze.c
/* squeeze:  delete all characters from s1 that match any in s2 */
delete all characters from s1 that match any in s2
delete all characters from s1 that match any in s2
void squeeze(char s1[], char s2[]) {
  int i, j, k;
  int instr2;
  for (i = j = 0; s1[i] != '\0'; i++) {
    instr2 = FALSE;
    for (k = 0; s2[k] != '\0' && !instr2; k++)
      if (s2[k] == s1[i]) instr2 = TRUE;
    if (!instr2) s1[j++] = s1[i];
  }
  s1[j] = '\0';
}
void squeeze ( char s1 [ ] , char s2 [ ] ) { int i , j , k ; int instr2 ; for ( i = j = 0 ; s1 [ i ] != ' \0 ' ; i ++ ) { instr2 = FALSE ; for ( k = 0 ; s2 [ k ] != ' \0 ' && ! instr2 ; k ++ ) if ( s2 [ k ] == s1 [ i ] ) instr2 = TRUE ; if ( ! instr2 ) s1 [ j ++ ] = s1 [ i ] ; } s1 [ j ] = ' \0 ' ; }
squeeze:  delete all characters from s1 that match any in s2
squeeze : delete all characters from s1 that match any in s2