More Advanced Algorithm
#define EOS '\0'
void BF(char *x, int m, char *y, int n) {
char *yb; /* Searching */ for (yb = y; *y != EOS; ++y) if (memcmp(x, y, m) == 0) OUTPUT(y - yb);
}
Read more about this topic: Brute-force Search
Famous quotes containing the word advanced:
“A resolution to avoid an evil is seldom framed till the evil is so far advanced as to make avoidance impossible.”
—Thomas Hardy (18401928)