Date: Mon, 28 Jun 1999 22:58:26 -0400 (EDT) From: Chuck Robey <chuckr@picnic.mat.net> To: Greg Lehey <grog@lemis.com> Cc: Patryk Zadarnowski <patrykz@mycenae.ilion.eu.org>, freebsd-hackers@FreeBSD.ORG Subject: Re: environment strings Message-ID: <Pine.BSF.4.10.9906282257410.68894-100000@picnic.mat.net> In-Reply-To: <19990629121313.B85121@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9906282257410.68894-100000>