From owner-freebsd-chat Sun Sep 6 18:33:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA23236 for freebsd-chat-outgoing; Sun, 6 Sep 1998 18:33:48 -0700 (PDT) (envelope-from owner-freebsd-chat@FreeBSD.ORG) Received: from germanium.xtalwind.net (germanium.xtalwind.net [205.160.242.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA23218 for ; Sun, 6 Sep 1998 18:33:44 -0700 (PDT) (envelope-from jack@germanium.xtalwind.net) Received: from localhost (jack@localhost) by germanium.xtalwind.net (8.9.1/8.9.1) with SMTP id VAA03776; Sun, 6 Sep 1998 21:33:33 -0400 (EDT) Date: Sun, 6 Sep 1998 21:33:33 -0400 (EDT) From: jack To: Marc Slemko cc: freebsd-chat@FreeBSD.ORG Subject: Re: Where can I find C In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 6 Sep 1998, Marc Slemko wrote: > Just because it works on an implementation without problems or just > because it was "standard" at one point does not mean that current > standards allow it or that an implementation must work in that manner. > > So the issue is if the most relevant C standard says you need the include, > then it isn't C if you don't do it even if it compiles. I'm not arguing that it is "correct", or good form, not to include the include, just that the `It won't work.' statements that were made are false with respect to that version of cc on this platform. IIRC what the original poster asked for, Greg's reply was the definitive answer. Sure, the implementation has changed in the past twenty years but I believe the original request was for the `first' or `original' C program. Apparently gcc 2.7.2.1 is backward compatible enough with K&R first edition not to need an include to use printf. -------------------------------------------------------------------------- Jack O'Neill Systems Administrator / Systems Analyst jack@germanium.xtalwind.net Crystal Wind Communications, Inc. Finger jack@germanium.xtalwind.net for my PGP key. PGP Key fingerprint = F6 C4 E6 D4 2F 15 A7 67 FD 09 E9 3C 5F CC EB CD enriched, vcard, HTML messages > /dev/null -------------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message