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 21:49:19 -0400 To: cygwin AT sources DOT redhat DOT com Subject: Re: _argc & _argv Message-ID: <20000801214919.A20820@cygnus.com> Reply-To: cygwin AT sources DOT redhat DOT com Mail-Followup-To: cygwin AT sources DOT redhat DOT com References: <39871530 DOT 13263 DOT 132FCC9 AT localhost> <200008020126 DOT VAA30570 AT envy DOT delorie DOT com> <3987193F DOT 13209 DOT 142D841 AT localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <3987193F.13209.142D841@localhost>; from pgarceau@teleport.com on Tue, Aug 01, 2000 at 06:38:55PM -0800 On Tue, Aug 01, 2000 at 06:38:55PM -0800, Paul Garceau wrote: >On 1 Aug 2000, at 21:26, the Illustrious DJ Delorie wrote: >>>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?) >> >>They're parameter names. You can call them anything you want. You >>could call them "quagmire" and "felicity" if you want. > >Ok...now that it has been made fundamentally clear that I can't pull >teeth from a hen...let me once again rephrase the question... I answered your question almost immediately after you sent the message to the mailing list. 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. Cygwin emulates UNIX on Windows. >What is used for Cygwin? Cygwin does mean Cygnus for Win32, does it >not? Cygwin was developed to provide a UNIX interface for Windows. FYI, there is documentation on this and other things (not argc, arg, unfortunately) on our web site: http://sources.redhat.com/cygwin/ . Maybe reading some of the stuff there will clear up your confusion about what this project is all about. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com