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:
“Having advanced to the limit of boldness, child, you have stumbled against the lofty pedestal of Justice.”
—Sophocles (497406/5 B.C.)