Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!edcastle!james From: james@castle.ed.ac.uk (J Gillespie) Newsgroups: comp.lang.c Subject: Re: fscanf & EOF Keywords: none Message-ID: <8613@castle.ed.ac.uk> Date: 19 Feb 91 23:43:48 GMT References: <2145@novavax.UUCP> Organization: Edinburgh University Lines: 15 gls@novavax.UUCP (Gary Schaps) writes: >Would some kind soul care to illuminate for me why this code dumps core? > while ( (fscanf(input,"%8s%1s%2s", part_number, delimiter, > part_class)) && (feof(input)) ) Should that be feof(input), or !feof(input) ? ^^^^^ -- James Gillespie, /~~~~~~~~\ Edinburgh University / @ @ \ "Oh wow. What a bummer." james@ed.ac.uk / < \ -- Truman Sparks, _Fandango_ ____________________/ \________/ \__________________________________________