Re: system() and nested quotes

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu