This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: printf format string


 > 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]