www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/01/22:58:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: Chris Faylor <cgf AT cygnus DOT com>
Date: Tue, 1 Aug 2000 22:57:03 -0400
To: cygwin AT sources DOT redhat DOT com
Subject: Re: _argc & _argv
Message-ID: <20000801225703.A21609@cygnus.com>
Reply-To: cygwin AT sources DOT redhat DOT com
Mail-Followup-To: cygwin AT sources DOT redhat DOT com
References: <3987193F DOT 13209 DOT 142D841 AT localhost>; <20000801214919 DOT A20820 AT cygnus DOT com> <398729EF DOT 26967 DOT 184065B AT localhost>
Mime-Version: 1.0
User-Agent: Mutt/1.3.6i
In-Reply-To: <398729EF.26967.184065B@localhost>; from pgarceau@teleport.com on Tue, Aug 01, 2000 at 07:50:07PM -0800

On Tue, Aug 01, 2000 at 07:50:07PM -0800, Paul Garceau wrote:
>On 1 Aug 2000, at 21:49, the Illustrious Chris Faylor wrote:
>>The only way to get the argc and argv parameters is in your main
>>function.  They are passed as arguments.
>>
>>Cygwin does not have external globals that point to argc or argv.
>>Neither does UNIX.
>
>I know Unix doesn't...I didn't know that Cygwin echoed that.  I think
>that is the answer I was attempting to elicit.
>
>Thank you for your patience.

Cygwin does try to stride two worlds and it is not always easy to see
the distinction between the Windows way and the UNIX way.  In
retrospect, I can't honestly say that we didn't implement __argv and
__argc because "They don't do things that way on Windows" because we
have made other concessions to the Microsoft way of doing things.

In this case the real answer as to why there is no __argv and __argc is
probably "Because no one thought to add it."

Have fun,
cgf

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019