Mail Archives: djgpp-workers/1996/04/04/14:26:41
>
> In some docs I've read that scanf returns EOF only in case it can
> read no characters at all. Is that correct? If so, the current
> doscan implementation is broken about it and I have to fix it.
Does this include blocking behavior?
I stay away from scanf, its often better to do
fgets(buffer)
sscanf(buffer,...)
and deal with stuff a line at a time...
scanf may well be broken, but I'll try not to find out.
--
marty
leisner AT sdsp DOT mc DOT xerox DOT com
Member of the League for Programming Freedom
- Raw text -