fscanf & EOF

Steve Kelley kelley at aclcb.purdue.edu
Tue Feb 12 03:56:00 AEST 1991


In article <2145 at novavax.UUCP>, gls at 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.



More information about the Comp.lang.c mailing list