#include
int strat( char *s, char c )
{
while ( *s )
{
if ( *s==c )
return 1;
s++;
}
return 0;
}
char *strsub( char *s, char *q)
{
char *t=s,*new_s=s;
while ( *t )
{
if ( !strat( q, *t) )
*new_s++ = *t ;
t++;
}
*new_s='\0';
return s;
}
void main()
{
char str1[]="abcdefg";
char str2[]="abc" ;
char *p=strsub( str1,str2);
printf("%s\n", p );
}