fscanf & EOF

house ron s64421 at zeus.usq.EDU.AU
Fri Feb 15 23:06:30 AEST 1991


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)) ) 

Not unless you give the whole program.

--
Regards,

Ron House.   (s64421 at zeus.usq.edu.au)
(By post: Info Tech, U.C.S.Q. Toowoomba. Australia. 4350)



More information about the Comp.lang.c mailing list