scanf non-conformance

Kaz Kylheku kaz@ashi.footprints.net
Tue Aug 15 09:12:00 GMT 2000


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.



More information about the Libc-alpha mailing list