Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool filter(char z, char * filtr)
- {
- while(*filtr!='\0')
- {
- if(*filtr == z)
- return true;
- filtr++;
- }
- return false;
- }
- int kopiujZFiltrowaniem(char * d, char * z, char * filtr )
- {
- int liczba = 0;
- while(*z != '\0')
- {
- if(filter(*z, filtr))
- {
- *d = *z;
- ++d;
- liczba++;
- }
- z++;
- }
- *(d++) == '\0';
- return liczba;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement