#include "stdio.h" #include "stdlib.h" #include "conio.h" #include "iostream" int charcount(const char* str, char ch) { int count = 0; for(int i=0;i 1) { for(int i=1;i 0) { size = Mask[0] == '*' ? charcount(Mask, '*') : charcount(Mask, '*') + 1; msk[0] = strtok(Mask, "*"); if(size > 1) { for(int i=1;i= ssize+1) { bck[counter++] = ch[i]; } } if(counter != 0) { printf("Founds:"); for(int i=0;i < counter;i++) printf("%s %c ", bck[i], i == counter - 1 ? '\0' : '|'); } free(ch); free(bck); free(msk); getchar(); } //=Sample of work= // //Type string: //This_Is_So_Long_String //Type mask: //*o //Founds:So | Long