What function should I use to escape strings for shell command argument in C?
I have a string:
This is a string with () charactersThis will be error:
echo This is a string with () charactersThese are OK:
echo "This is a string with () characters"echo This is a string with \(\) characters
Is there a predefined function convert #2 to #3 in C?