char * rm(char *string, char *remove) {
if( string && remove ) {
char *s ;
char strike[128] = {0} ;
while( *remove ) {
if( *remove < 128 )
strike[*remove] = 1 ;
++remove ;
}
s = remove = string ;
do {if( !strike[*remove] )
*s++ = *remove ;
} while( *remove++ ) ;
}
return string;
}
int main( int argc, char **argv ) {
char s[] = "Daily Programmer" ;
char r[] = "aeiou " ;
puts(rm( s, r ));
return 0 ;
}