scanf conflict with conclusions of WG 14 Defect Report 017 Question 29
Petter Reinholdtsen
pere@hungry.com
Sun Nov 23 11:42:00 GMT 2003
[Manuel Novoa III, 2003-09-16]
> /* glibc scanf violates the behavior specified in Defect Report #022
> Question 29.
I tested this, and it failed. I tried to compile it on other UNIXes
as well, but all of them are lacking fmemopen(), so I was unable to
test it there.
On Linux, the output is
fscanf returned 1, ferror=0, feof=0, and the next fgetc returned '4'
Error: By the response to Defect Report #022 Question 29,
scanf should have returned 0 due to a matching failure!
More information about the Libc-alpha
mailing list