Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fseek

Status
Not open for further replies.

niru1972

Programmer
Feb 3, 2001
6
US
I need to write a c program with a executable prj1, which may be invoked as:
prj1 DictFile File1...
which produces on standard output a index of the words in File1... .
DictFile should specify a file containing a list of the words to be indexed, a single word per line.
Specifically, the program should produce on its standard output a line corresponding to each occurrences of a word in File1..., where the format of the line should
be:
Word:FileName:FSeekOffset
where Word is the word being indexed, FileName is the name of the file in which it occurs and FSeekOffset is the fseek() offset of the start of the word in the file.
A word in an input file is an index word iff both the following conditions are true:
The word is a maximal sequence of alphanumerics.
The word occurs in DictFile, when letter-case is ignored.
When a index word appears in the output it should do so in all lower-case.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top