This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: scanf non-conformance
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: scanf non-conformance
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Date: Tue, 15 Aug 2000 09:12:46 -0700 (PDT)
- cc: libc-alpha at sourceware dot cygnus dot com
On Tue, 15 Aug 2000, Joseph S. Myers wrote:
> Date: Tue, 15 Aug 2000 11:40:48 +0100 (BST)
> From: Joseph S. Myers <jsm28@cam.ac.uk>
> To: libc-alpha@sourceware.cygnus.com
> Subject: scanf non-conformance
>
> Ulrich will already be aware of this, but it should probably be noted:
> glibc's scanf conforms to neither the 1990 nor the 1999 C standard. It
> doesn't conform to the 1990 standard because of the additional floating
> point forms (hex floats, infinities and NaNs) recognised as per C99.
Recognizing additional conversion specifiers is permitted in a conforming C90
scanf implementation. I believe that the behavior of using these is undefined;
so it is the program that uses these extensions that fails to be strictly
conforming.