Date: Mon, 3 Mar 1997 09:53:06 -0800 (PST) From: Bruce Evans <bde> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libc/stdio vfscanf.c Message-ID: <199703031753.JAA16576@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
bde 97/03/03 09:53:05
Modified: lib/libc/stdio vfscanf.c
Log:
Fixed handling of input failure by the scanf family.
- 0 was returned instead of EOF when an input failure occured while
skipping white-space after 0 assignments. This fixes PR2606. The
diagnosis in PR2606 is wrong.
- EOF was returned instead of 0 when an input failure occurred after
zero assignments and nonzero suppressed assignments.
- EOF was spelled -1.
This should be in 2.2.
Revision Changes Path
1.8 +11 -3 src/lib/libc/stdio/vfscanf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703031753.JAA16576>
