Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Sep 1998 18:04:03 -0700 (PDT)
From:      Marc Slemko <marcs@znep.com>
To:        jack <jack@germanium.xtalwind.net>
Cc:        freebsd-chat@FreeBSD.ORG
Subject:   Re: Where can I find C
Message-ID:  <Pine.GSO.4.02A.9809061801290.9882-100000@redfish>
In-Reply-To: <Pine.BSF.4.02A.9809062048330.3596-100000@germanium.xtalwind.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 6 Sep 1998, jack wrote:

> In the second edition (1988) `#include <stdio.h>' is part of that
> listing, and it is in that brace style.  However, the include
> file is not required.
> 
> germanium:jack {116} echo 'main(){printf("Hello World!\n");}' >
> hello.c
> germanium:jack {117} cc -o hello hello.c
> germanium:jack {118} ./hello
> Hello World!
> germanium:jack {119} cc -v
> gcc version 2.7.2.1
> 
> No warning, no errors, no core dumps.

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.


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.02A.9809061801290.9882-100000>