From owner-freebsd-hackers Mon Jun 28 19:59:41 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from picnic.mat.net (picnic.mat.net [206.246.122.133]) by hub.freebsd.org (Postfix) with ESMTP id 1112514E39 for ; Mon, 28 Jun 1999 19:59:24 -0700 (PDT) (envelope-from chuckr@picnic.mat.net) Received: from localhost (chuckr@localhost) by picnic.mat.net (8.9.3/8.9.3) with ESMTP id WAA86269; Mon, 28 Jun 1999 22:58:26 -0400 (EDT) (envelope-from chuckr@picnic.mat.net) Date: Mon, 28 Jun 1999 22:58:26 -0400 (EDT) From: Chuck Robey To: Greg Lehey Cc: Patryk Zadarnowski , freebsd-hackers@FreeBSD.ORG Subject: Re: environment strings In-Reply-To: <19990629121313.B85121@freebie.lemis.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 29 Jun 1999, Greg Lehey 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. man 3 exec, I think. > > Greg > -- > See complete headers for address, home page and phone numbers > finger grog@lemis.com for PGP public key > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > ----------------------------+----------------------------------------------- Chuck Robey | Interests include any kind of voice or data chuckr@picnic.mat.net | communications topic, C programming, and Unix. 213 Lakeside Drive Apt T-1 | Greenbelt, MD 20770 | I run picnic and jaunt, both FreeBSD-current. (301) 220-2114 | ----------------------------+----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message