This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: _argc & _argv


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@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]