This is a fast text search routine that allows multi string (up to 10 search strings containing one or more words within) search throughout an ASCII text file (msearch) . msearch3 allows fast search through ASCII and Unicode files . (http://www.jasenko.c
Previous review was pretty close - though there are usage strings and such that aren't too hard to find: "msearch -s(-e) <search string 1>+...+<search string 10> -f <filename>" Will show with command line -h ... But I found that without using -s or -e, it returned no results, and with -s, it returned a LOT of lines that didn't match - I broke out after it spewed many screens full. It's also true that the code is very difficult to read - virtually *all* variables and functions are 2-4 letters, maybe with an underscore. It's not huge, so you could probably figure it out without much trouble if you ran it through a debugger.. and it does seem to need some debugging. That, with the handful of tiny comments, including the ones that are just commented out printf's... makes it hard to even want to work with the code. (at this time) Maybe if the author adds some comments/docs/better variable names... or some such thing.