delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/01/21:41:08

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: "Paul Garceau" <pgarceau AT teleport DOT com>
Organization: New Dawn Productions
To: cygwin AT sources DOT redhat DOT com
Date: Tue, 1 Aug 2000 18:38:55 -0800
MIME-Version: 1.0
Subject: Re: _argc & _argv
Reply-to: Paul Garceau <pgarceau AT teleport DOT com>
Message-ID: <3987193F.13209.142D841@localhost>
In-reply-to: <200008020126.VAA30570@envy.delorie.com>
References: <39871530 DOT 13263 DOT 132FCC9 AT localhost> (pgarceau AT teleport DOT com)
X-mailer: Pegasus Mail for Win32 (v3.12c)


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...

	What is the "internal representation" of argc, argv for Cygwin?

	For mingw32 it is as follows:

	(excerpt from stdlib.h)

/*
 * This seems like a convenient place to declare these variables, which
 * give programs using WinMain (or main for that matter) access to main-ish
 * argc and argv. environ is a pointer to a table of environment variables.
 * NOTE: Strings in _argv and environ are ANSI strings.
 */
extern int	_argc;
extern char**	_argv;


	What is used for Cygwin?  Cygwin does mean Cygnus for Win32, 
does it not?

	Thanks,

		Paul G.

	
> 




Nothing real can be threatened.
    Nothing unreal exists.

--
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