-Wall incorrectly complains about scanf with %a
Eljay Love-Jensen
eljay@adobe.com
Thu May 27 14:10:00 GMT 2004
Hi everyone,
I defer to Segher's comments on C99, and retract my statements regarding
"%as" versus "%a".
Seems that GNU libc's extension is (now) stomping on C99, and that "%a"
(and "%A") is a valid format specifier alias for "%e".
Note that "%a" is NOT in C++98! (But may sneak in their through
code-mingling. I'm not sure what C++03 says about it, if anything.)
Relevant references:
C99 sections 6.4.4.2, 6.4.8
C++98 sections 2.9, 2.13.3
Learn something new everyday! Love this forum!
--Eljay
More information about the Gcc-help
mailing list