system 5 vrs. bsd4.3 question

Dave Decot decot at hpisod2.HP.COM
Thu Jul 20 20:21:47 AEST 1989


Replace:

   main(argc, argv)
   int argc;
   char *argv[];

with

   main(argc, argv, envp)
   int argc;
   char *argv[], *envp[];

and your troubles should go away.  It is likely that the exec(2) page
in your SGI documentation has the explanation of envp.

Sounds like SGI has an unusual argument passing method.

Dave



More information about the Comp.unix.wizards mailing list