[ILUG] gcc and printf style functions

Paul Jakma paul at clubi.ie
Sat Mar 5 06:43:50 GMT 2005


On Fri, 4 Mar 2005, kevin lyda wrote:

>>    - is it possible, without changing gcc, to remove
>>      or redefine some of the % codes it does know?
>
> i think it should be.  and i think the argument for it is that the
> format escapes are actually handled by the target libc.  gcc seems to
> know glibc and various versions of ansi/iso c.  but gcc targets platforms
> with other libc's - the mingw gcc uses the ms libc.

The printf might be platform supplied, but the check of arguments 
against format string at compile time is pure GCC surely :)

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
Only adults have difficulty with childproof caps.



More information about the ILUG mailing list