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:
“I dont say tis impossible for an impudent man not to rise in the world, but a moderate merit with a large share of impudence is more probable to be advanced than the greatest qualifications without it.”
—Mary Wortley, Lady Montagu (16891762)