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:
“How oft when men are at the point of death
Have they been merry! which their keepers call
A lightning before death: O, how may I
Call this a lightning? O my love! my wife!
Death, that hath sucked the honey of thy breath,
Hath had no power yet upon thy beauty:
Thou art not conquered; beautys ensign yet
Is crimson in thy lips and in thy cheeks,
And deaths pale flag is not advanced there.”
—William Shakespeare (15641616)