Where is hfPtr declared in a prototype? Or more to the point, since the name of a parameter in the prototype doesn't matter, where is it declared in the function? (The compiler is asking you the same question.)
[edit]While we're at it:
FAQ > Explanations of... > Why it's bad to use feof() to control a loop