From owner-freebsd-chat Sun Sep 6 17:33:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA16458 for freebsd-chat-outgoing; Sun, 6 Sep 1998 17:33:12 -0700 (PDT) (envelope-from owner-freebsd-chat@FreeBSD.ORG) Received: from localhost.my.domain (ppp6467.on.bellglobal.com [206.172.208.59]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA16453 for ; Sun, 6 Sep 1998 17:33:09 -0700 (PDT) (envelope-from hoek@FreeBSD.ORG) Received: (from tim@localhost) by localhost.my.domain (8.8.8/8.8.8) id UAA01086; Sun, 6 Sep 1998 20:32:48 -0400 (EDT) (envelope-from tim) Message-ID: <19980906203247.B1058@zappo> Date: Sun, 6 Sep 1998 20:32:47 -0400 From: Tim Vanderhoek To: Garrett Wollman , Charles Youse Cc: Dusk Auriel Sykotik , chat@FreeBSD.ORG Subject: Re: Where can I find C References: <199809060156.VAA21373@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199809060156.VAA21373@khavrinen.lcs.mit.edu>; from Garrett Wollman on Sat, Sep 05, 1998 at 09:56:43PM -0400 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Sep 05, 1998 at 09:56:43PM -0400, Garrett Wollman wrote: > > Mr. Whazisname is correct. Standard C does not permit variadic > functions to be called without a declaration in scope. The minimal > hello, world program in C would be: > > ------------------------------------ > int printf(const char *, ...); /* supply correct prototype */ > int > main(void) /* as a special exception, main is allowed to take no args */ Isn't defaulting main() to return int legit (although not recommended), too? [So long as we're being pedantic and minimal]. > I don't recall whether a non-prototype declaration is permitted for > variadic functions. I think it is, but would not be surprised to see > non-prototype declarations dropped completely from C 99. Same with the default return of int. :) -- This .sig is not innovative, witty, or profund. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message