Turbo C's fscanf()
Michael J. Schmelzer
mjschmel at phoenix.Princeton.EDU
Sun May 1 07:27:22 AEST 1988
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 at phoenix!princeton.edu
DISLAIMER:If you think I speak for anyone but myself, you must be a lawyer.
More information about the Comp.lang.c
mailing list