Mail Archives: djgpp/1996/04/03/06:00:33
> From: Broeker AT axp03 DOT physik DOT rwth-aachen DOT de (Hans-Bernhard Broeker)
> --- 104,112 ----
> &fileended) && ptr)
> nmatch++;
> /* breaks %n */
> ! else if (fileended) { /* HBB: if conversion failed, stop action immediately*/
> return(nmatch? nmatch: -1);
> ! }
> break;
> case ' ':
> case '\n':
Shouldn't scanf exit if match failed and eof is not reached?
See my patch (Subject "doscan patch") on this list. It fixes two problems
recently reported. I have sent it to djgpp-workers two days ago.
> Hans-Bernhard Broeker (Aachen, Germany)
- Raw text -