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 [EMAIL PROTECTED] for PGP public key
>
>
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
>
----------------------------+-----------------------------------------------
Chuck Robey | Interests include any kind of voice or data
[EMAIL PROTECTED] | 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message