"Re: Undocumented Stuff"
    Peter Knoppers 
    knop at dutesta.UUCP
       
    Thu Apr  5 07:14:41 AEST 1984
    
    
  
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
    
    
More information about the Comp.unix.wizards
mailing list