fscanf & EOF

Brian Fennell fenn at wpi.WPI.EDU
Tue Feb 12 08:34:31 AEST 1991


In article <NEWBERRY.91Feb11114703 at illyria.nmsu.edu> 
	newberry at nmsu.edu (Jeff Newberry) writes:
>
>How are the arguments defined?  If they are all defined as arrays of
>characters, then I don't know why it core dumps.  If "delimiter" is
>defined as a charater, then you need "&delimiter".

If your delimiter is a character, it shouldn't be.  &delimiter will
work only if you are lucky enough to have (&delimiter)+1 empty, or
empty-able because it will get the '\0' terminating your 1 character
string.



More information about the Comp.lang.c mailing list