Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 beta 3/9/83; site dutesta.UUCP Path: utzoo!watmath!clyde!floyd!harpo!decvax!mcvax!dutesta!knop From: knop@dutesta.UUCP (Peter Knoppers) Newsgroups: net.unix-wizards Subject: Re: "Re: Undocumented Stuff" Message-ID: <219@dutesta.UUCP> Date: Wed, 4-Apr-84 16:14:41 EST Article-I.D.: dutesta.219 Posted: Wed Apr 4 16:14:41 1984 Date-Received: Sat, 7-Apr-84 04:00:17 EST References: <387@hocda.UUCP> Organization: Delft univ. of tech., the Netherlands Lines: 18 Main is called with 3 arguments. This is *not* an undocumented feature. I quote from the manual page for exec(2): ------------ When a C program is executed, it is called as follows: main(argc, argv, envp) int argc; char **argv, **envp; ------------ BTW, I do know of a U**X that doesn't support this. I maintain a slightly hacked version of PWB/UNIX. This UNIX version doesn't have environment variables. -- Peter (If everything else fails, read the manuals) Knoppers. ..!{decvax,philabs}!mcvax!dutesta!knop