This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
[Q] How to get argc, argv, environ variable in Win32
- To: "GNU-Win32" <gnu-win32 at cygnus dot com>
- Subject: [Q] How to get argc, argv, environ variable in Win32
- From: "Chun, Sung Jin" <ninja at aerohel dot snu dot ac dot kr>
- Date: Wed, 22 Jul 1998 15:00:32 +0900
- Reply-To: "Chun, Sung Jin" <ninja at aerohel dot snu dot ac dot kr>
In WinMain function, there's no argc, argv, and environ
variable.
I found that there's global variable
extern int __argc;
extern char** __argv;
extern char** _environ;
But this does not work. For example, __argc is
100XXX like number when I print it from WinMain.
How can I get this individually in WinMain ?
Thanks in advance and Please reply me via e-mail.
******************************************
I like N*Step's beauty, but Iove Freedom.
ninja@aerohel.snu.ac.kr
---ObjC---
NSString* NSMyName = @"Chun, sungjin";
[ NSMyName fly ];
---ObjC---
******************************************
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".