I use the following code in c++ under linux, but I need to convert it to c under linux, any one can convert it from c++ to c.
the details of the program is:
It reads a text file and then asks the user to enter a string.
It then displays how many times the string occurs and also prints the lines in which it occurs
You'' need to implement your own map and multimap (or get them from a 3rd party library) as C doesn't provide them. You can replace the C++ I/O stream library with the ANSI C equivalent.