/ * Writer SQUEEZE (S1, S2), delete any characters in the string S1 match characters in the character string S2 * / char * SQUEEZE (CHAR * DS, CHAR * SS) {INT i = 0; char * iter = ds, * head = ss; for (; * ds! = '/ 0'; ds ) {head = ss; for (; * head! = '/ 0'; head ) {if (* DS == * Head) Break;} f (* head == '/ 0') iter [i ] = * DS; / * all do not match * /}
Iter [i] = '/ 0'; returnite;}