From owner-freebsd-hackers Mon Jun 28 22:19:58 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from obie.softweyr.com (unknown [204.68.178.33]) by hub.freebsd.org (Postfix) with ESMTP id B06BE15108 for ; Mon, 28 Jun 1999 22:19:54 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.com (homer.softweyr.com [204.68.178.39]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id XAA25692; Mon, 28 Jun 1999 23:19:33 -0600 (MDT) (envelope-from wes@softweyr.com) Message-ID: <37785764.F63593AE@softweyr.com> Date: Mon, 28 Jun 1999 23:19:32 -0600 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Greg Lehey Cc: Patryk Zadarnowski , freebsd-hackers@FreeBSD.ORG Subject: Re: environment strings References: <19990629095659.B86806@freebie.lemis.com> <199906290218.MAA29451@mycenae.ilion.eu.org> <19990629121313.B85121@freebie.lemis.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey wrote: > > On Tuesday, 29 June 1999 at 12:18:07 +1000, Patryk Zadarnowski wrote: > > > > This is of course correct except for the `undocumented' claim. The > > `envp' has been documented as the third argument to main() since the > > Pharaons (well, not quite ;). Apparently AT&T UNIX even has a > > (documented) five-parameter main(). > > This is news to me. Can you point to the documentation? > > > Besides, the `envp' argument is a recommended extension in ISO/ANSI > > C, so you can hardly say that it's undocumented. > > Hmm. I don't have the Standard here, but I've dug around and found a > couple of references to the third parameter, an "optional extension". > I think the real problem is that K&R didn't describe it: it was > introduced in the Seventh Edition, which came after K&R. Time for a main() man page? Where would it go? Section 2, 3, or 9? Hmm... -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message