Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: Chris Faylor <cgf@cygnus.com>
Date: Tue, 1 Aug 2000 21:30:32 -0400
To: cygwin@sources.redhat.com
Subject: Re: _argc & _argv
Message-ID: <20000801213032.D20473@cygnus.com>
Reply-To: cygwin@sources.redhat.com
Mail-Followup-To: cygwin@sources.redhat.com
References: <39870B67.4472.10CC499@localhost>; <20000801204642.B19975@cygnus.com> <39871530.13263.132FCC9@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.6i
In-Reply-To: <39871530.13263.132FCC9@localhost>; from pgarceau@teleport.com on Tue, Aug 01, 2000 at 06:21:36PM -0800

On Tue, Aug 01, 2000 at 06:21:36PM -0800, Paul Garceau wrote:
>
>
>On 1 Aug 2000, at 20:46, the Illustrious Chris Faylor wrote:
>
>> On Tue, Aug 01, 2000 at 05:39:51PM -0800, Paul Garceau wrote: >Hi
>> folks, > >   From what I can tell, the values noted in the
>> subject line >are not defined as part of standard non-mingw32
>> headers. > >   My question is, how does Cygwin deal with argc,
>> argv  without >using mingw32 headers?
>> 
>> Like any UNIX program (or Windows program for that matter).  They
>> are arguments to main:
>
>	Yes, I know that...I also realize that these sound like foolish 
>questions that only a newbie would ask...when working with three 
>or four different compiler ports at any given time, they tend to 
>get mixed up...
>
>> 
>> int main (int argc, char **argv);
>
>	More specifically, is argc, argv defined with or w/o leading 
>underscores for Cygwin when it comes to defining them for a 
>main() routine?
>
>   csMain (argc, argv); (Cygwin?)
>   csMain (__argc, __argv); (Mingw/MS)
>   csMain(_argc,_argv); (Borland)

I don't know what "csMain" is but it doesn't matter what you name
an argument.  You can call them "fred" and "ethel" of you want.
Or, "__fred" and "__ethel", if you prefer.

cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

