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]
Other format: [Raw text]

Re: Call for testers: MPC-0.6 released


On Thu, Apr 02, 2009 at 01:55:29PM -0700, Kaveh R. Ghazi wrote:
> From: "Marc Glisse" <marc.glisse@normalesup.org> 
> >This could be related to a call to sprintf(str,...,str,...), which 
> >according to the doc is undefined behaviour.
> 
> Doc? I don't see it in the man page.  Got a url?

man 3p sprintf says:

If copying takes place between objects that overlap as a result of a call to
sprintf() or snprintf(), the results are undefined.

ISO C99 7.19.6.6 has similar wording:

If copying takes place between objects that overlap, the behavior is undefined.

	Jakub


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