Re: EMX runtime and command line arguments
<[email protected]> Tue, 13 Jan 2004 18:20:42 +0100
| Newsgroups | gmane.comp.ide.emx.devel |
|---|---|
| Organization | http://freemail.web.de/ |
| Message-ID | <[email protected]> |
Andreas wrote:
> When an emx program is called, the command line arguments, i.e.,
> the argv argument of main() is modified before main() is entered.
No, argv is built from the single-string command line passed to the program.
> Double quotes ('"') are removed and backslashes interpreted under
> certain circumstances (e.g., '\"' is replaced by '"').
...and the line is split into multiple arguments.
> What exactly does the runtime do, and under which circumstances,
Use the source, Luke!
See parse_arg() in emx/src/os2/init.c.
> and is it possible to access the original argv from within the
> program?
See initalize1() in init.c.
Eberhard