I need a C function that can highlight updates made to text files. The text files will be passed as two arrays of strings, and the function will mark the differences on the word level. Notice that it's not a simple line to line comparison - new blocks of text may be inserted before, in the middle or after the original text.
The code must be platform independant, and while C is preferred, simple C++ could be accepted as well.
Input parameters:
Array of strings 1 (newest text)
Array of strings 2 (older text)
Output:
Array of strings with changes marked
Number of words added in array 1
Number of words deleted in array 1
The function will be used to compare text extracted from web pages to detect page updates.
For a simple example, see the attached file.
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Windows, Linux