#include /* file functions, etc... */ #include /* exit(), malloc() */ #define FALSE 0 #define TRUE 1 FILE *filep; char *In; /* data */ int InLength,OutLength; /**** SearchNext routine, brute force version ******************************/ /* To speed up this routine, copy beforehand the string to search at the */ /* end of the text (you must allocate a bit more memory) and remove the */ /* TextPos+StringLength<=TextLength condition in main loop. The routine */ /* will always find a string, once this is done, compare Pos+Length and */ /* return -1 if it is the one we added! */ int SearchNext(char *String,int StringLength, char *Text,int TextLength,int TextPos) { int NbMatch=0; while((NbMatch