Path: utzoo!attcan!uunet!wuarchive!hsdndev!husc6!purdue!mentor.cc.purdue.edu!KELLEY@aclcb.purdue.edu From: kelley@aclcb.purdue.edu (Steve Kelley) Newsgroups: comp.lang.c Subject: Re: fscanf & EOF Message-ID: <0094411F.D9E2FB20@aclcb.purdue.edu> Date: 11 Feb 91 16:56:00 GMT References: <2145@novavax.UUCP> Sender: news@mentor.cc.purdue.edu Reply-To: kelley@aclcb.purdue.edu (Steve Kelley) Organization: S. Peter Pryor Junior College Lines: 13 In article <2145@novavax.UUCP>, 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)) ) - Because it's wrong. -Thanks. You're welcome.