scrogged argc, argv (was: system 5 vrs. bsd4.3 question)

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Sep 6 03:31:40 AEST 1989


In article <28398 at beta.lanl.gov> dxk at beta.lanl.gov (David M Koon) writes:
-#include <stdio.h>
-#include <string.h>
-#include <time.h>
-#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".



More information about the Comp.unix.wizards mailing list