This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: printf format string
- To: beyerj@sgi.com, gcc@gcc.gnu.org
- Subject: Re: printf format string
- From: "Kaveh R. Ghazi" <ghazi@caip.rutgers.edu>
- Date: Wed, 25 Aug 1999 13:41:14 -0400 (EDT)
> From: James Beyer <beyerj@sgi.com>
>
> What is the expected output if an argument does not have the
> appropriate types for the string format specified?
>
> Is the argument just cast into the correct format, with casting rules
> applied? Or is the output undefined in some cases?
>
> This seems like it may be implementation dependent.
>
> james
Try using gcc -Wformat (or -Wall) to find at compile time the places
where problems might occur.
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions