From owner-cvs-all Tue Dec 18 8:38:15 2001 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id A580837B417; Tue, 18 Dec 2001 08:38:03 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id fBIGc2a16998; Tue, 18 Dec 2001 09:38:02 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id fBIGc2M89699; Tue, 18 Dec 2001 09:38:02 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200112181638.fBIGc2M89699@harmony.village.org> To: Mark Murray Subject: Re: Are prototypes for main() illegal by any standard ? (was Re: Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org In-reply-to: Your message of "Tue, 18 Dec 2001 10:48:56 +0200." <200112180848.fBI8mvO00685@grimreaper.grondar.org> References: <200112180848.fBI8mvO00685@grimreaper.grondar.org> Date: Tue, 18 Dec 2001 09:38:02 -0700 From: Warner Losh Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200112180848.fBI8mvO00685@grimreaper.grondar.org> Mark Murray writes: : AFAIK, this is perfectly legal C: : : /* begin */ : void printf(char *, ...) : : void main(void) : { : printf("Hello world"); : } : /* end */ Please see secont 5.1.2.2.1 of the c99 standard for why this isn't valid in a hosted enviornment. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message