1. system() and nested quotes
When I type this on the command line
mozilla "www.mozilla.org"
it works. It fires up Mozilla and gets the web page.
The problem is how to do that with system()
Like this?
system("mozilla "www.mozilla.org"",2)
Doesn't work.
What do you do with nested quotes?
2. Re: system() and nested quotes
Jerry Story wrote:
> When I type this on the command line
>
> mozilla "www.mozilla.org"
>
> it works. It fires up Mozilla and gets the web page.
>
> The problem is how to do that with system()
>
> Like this?
> system("mozilla "www.mozilla.org"",2)
>
> Doesn't work.
>
> What do you do with nested quotes?
All quotes except of the outermost must be escaped:
system("mozilla \"www.mozilla.org\"", 2)
see http://www.rapideuphoria.com/refman_2.htm#char
Regards,
Juergen