Path: utzoo!mnetor!uunet!lll-winken!lll-tis!ames!umd5!purdue!gatech!udel!princeton!phoenix!mjschmel From: mjschmel@phoenix.Princeton.EDU (Michael J. Schmelzer) Newsgroups: comp.lang.c Subject: Turbo C's fscanf() Message-ID: <2739@phoenix.Princeton.EDU> Date: 30 Apr 88 21:27:22 GMT Organization: Princeton University, NJ Lines: 20 Keywords: Turbo C fscanf EOF 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.