Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!purdue!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.unix.wizards Subject: Re: scrogged argc, argv (was: system 5 vrs. bsd4.3 question) Message-ID: <10940@smoke.BRL.MIL> Date: 5 Sep 89 17:31:40 GMT References: <28398@beta.lanl.gov> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 17 In article <28398@beta.lanl.gov> dxk@beta.lanl.gov (David M Koon) writes: -#include -#include -#include -#include "cffs.h" -main(argc,argv) -int argc; -char *argv[]; -{ -.... -However, on the SGI machine argc is undefined and argv seems to contain -the environmental variables. Does anyone have any ideas as to what is -causing this and how I can fix it? The last time someone asked this, it turned out that the preceding header ("cffs.h" in this case) contained an error that affected the apparent return type associated with main(). Fix "cffs.h".