Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Mar 2001 15:01:17 -0500 (EST)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        G Hasse <gh@raditex.se>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: misc/25904: Error in the printf-function.
Message-ID:  <200103192001.PAA95759@khavrinen.lcs.mit.edu>
In-Reply-To: <Pine.BSF.4.21.0103192040000.13646-100000@gandalf.sickla.raditex.se>
References:  <200103191616.LAA93612@khavrinen.lcs.mit.edu> <Pine.BSF.4.21.0103192040000.13646-100000@gandalf.sickla.raditex.se>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 19 Mar 2001 20:41:01 +0100 (CET), G Hasse <gh@raditex.se> said:

> And why is there differnces in Linux and FreeBSD? Is there
> some right and wrong here?

The implementation is allowed to do anything when you invoke undefined
behavior (such as passing the wrong types to a variadic function).  As
Chris Torek once said:

	If the standard says [things] depend on the phase of the moon,
	the programmer should be prepared to look out the window as
	necessary.

Again, followups belong in comp.lang.c, not FreeBSD-bugs.

-GAWollman


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103192001.PAA95759>