[comp.lang.c] Turbo C's fscanf

mjschmel@phoenix.Princeton.EDU (Michael J. Schmelzer) (05/01/88)

Thanks everybody for your help. I'd like to clarify a point on page
203 of TC's library reference manual. It states that ...scanf returns
the number of fields processed or EOF if trying to process @ EOF.
In TC, EOF is -1. (I had assumed it was a NULL, like end-of-string,
WORNG!) 

So all's I have to now is:
result = fscanf(...
while (result != EOF) {
.
.
.
result = fscanf(...
}

Thanks again, from me and my end users!
-- 
"Sum Iuppiter Optimus Maximus!!"- My Latin teacher who flipped. 
"Worthlessness is the root of all worthlessness." -WPRB music dept.
Mike Schmelzer mjschmel@phoenix!princeton.edu
DISLAIMER:If you think I speak for anyone but myself, you must be a lawyer.