/*---------------------------------------------------------------------------*/
#include <stdio.h>
/*---------------------------------------------------------------------------*/
void squeeze(char s1[],char s2[]) {

    int look_index,put_index;

    look_index = -1;
    put_index = 0;

    while (s1[++look_index] != '\0')
        if (strchr(s2,s1[look_index]) == NULL)
            s1[put_index++] = s1[look_index];
    s1[put_index] = '\0';
}
/*---------------------------------------------------------------------------*/
int main(void) {

    char s1[128],s2[128];

    printf("Enter string to squeeze :");
    gets(s1);
    printf("Enter squeezing characters :");
    gets(s2);
    squeeze(s1,s2);
    printf("The result is %s\n",s1);

    return(0);
}
/*---------------------------------------------------------------------------*/
