Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ames!ncar!boulder!sunybcs!bingvaxu!leah!jac423
From: jac423@leah.Albany.Edu (Julius A Cisek)
Newsgroups: comp.sys.atari.st
Subject: Re: Megamax v1.1 Bug?
Keywords: argc,argv
Message-ID: <786@leah.Albany.Edu>
Date: 13 May 88 13:15:25 GMT
References: 
Organization: The University at Albany, Computer Services Center
Lines: 14

In article , paone@topaz.rutgers.edu (Phil Paone) writes:
> I have been playing with my v1.1 of Megamax C and found what appears
> to be a bug in c lib.  argc is being initialized to 1 instead of 0 so
> even when no arguments are passed, argc is 1.  I went into the library
> and patched this up, but the argv also appears to be off.  Is this the
> case, or is this supposed to be different from UNIX's method of
> handling them (Yes, I know argv[0] does not work)?

There is always at least 1 argument, the name of the program itself. It
is the same way on the UNIX as on the ST as in any implementation of C.
-- 
What about technology, computers, .------------------. J.A.Cisek
nuclear fusion?  I'm terrified of |Spectral Fantasies| jac423@leah.albany.edu
radiation, I hate the television. `------------------' jac423@uacsc1.albany.edu