Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Sep 1998 12:40:06 +0200 (MET DST)
From:      Jens Schweikhardt <schweikh@noc.dfn.de>
To:        cyouse@artemis.syncom.net (Charles Youse)
Cc:        syko@sykotik.org, scott@iprg.nokia.com, daniel@cooltime.simplenet.com, freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG
Subject:   Re: Where can I find C
Message-ID:  <199809061040.MAA17606@obsidian.noc.dfn.de>
In-Reply-To: <Pine.NEB.3.96.980905204054.25315A-100000@artemis.syncom.net> from "Charles Youse" at Sep 5, 98 08:43:32 pm

next in thread | previous in thread | raw e-mail | index | archive | help
hello, world\n

# Nah, it'll draw a warning, perhaps .... but this is perfectly legal C.
 
What did you smoke tonight? :-)
You call a variadic function with no prototype in scope
which leads to undefined behaviour as per ISO 9899:1990
This bombs as soon as the representation of int and char *
are different or if there are different passing mechanisms
for those types.

Now back to our regularly scheduled -stable discussions.

Note that only the spelling of hello, world\n as above is correct :-)

# On Sat, 5 Sep 1998, Dusk Auriel Sykotik wrote:
# > You can't use printf(), you didn't include stdio.h :)
# 
# > On Fri, 4 Sep 1998, Scott Sewall wrote:
# > > main () {
# > >     printf("Hello World!\n");
# > > }

Regards,

-- 
Jens Schweikhardt  http://www.shuttle.de/schweikh/
SIGSIG -- signature too long (core dumped)

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



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