3 ms·
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 argumen
by kazinator 8y ago
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.