From owner-freebsd-stable Sun Sep 6 03:40:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA02606 for freebsd-stable-outgoing; Sun, 6 Sep 1998 03:40:42 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from obsidian.noc.dfn.de (obsidian.noc.dfn.de [193.174.247.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA02587; Sun, 6 Sep 1998 03:40:29 -0700 (PDT) (envelope-from schweikh@obsidian.noc.dfn.de) Received: (from schweikh@localhost) by obsidian.noc.dfn.de (8.8.7/8.8.7) id MAA17606; Sun, 6 Sep 1998 12:40:06 +0200 (MET DST) From: Jens Schweikhardt Message-Id: <199809061040.MAA17606@obsidian.noc.dfn.de> Subject: Re: Where can I find C To: cyouse@artemis.syncom.net (Charles Youse) Date: Sun, 6 Sep 1998 12:40:06 +0200 (MET DST) Cc: syko@sykotik.org, scott@iprg.nokia.com, daniel@cooltime.simplenet.com, freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG In-Reply-To: from "Charles Youse" at Sep 5, 98 08:43:32 pm X-Mailer: ELM [version 2.4 PL25] Content-Type: text Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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