This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: scanf conflict with conclusions of WG 14 Defect Report 017 Question 29


[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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]