News for hackers. Stuff that matters.
Re:Libc on macOS invokes Perl as a subprocess for string pro... by kazinator on Thursday January 17, 2019 @01:29AM (#18928811)
How would you do this in C++ without string escaping, or extra memory allocation for string processing? Double quotes have to be passed embedded in the arguments passed to the shell.

One way (in C or C++) would be to define constants:

    #define DQ "\""
Then instead of "\"blah\" we have DQ "blah" DQ.

There are no comments on this comment yet.