Is there a way in C to parse a piece of text and obtain values for argv and argc, as if the text had been passed to an application on the command line?
This doesn\'
I'm surprised nobody has provided the simplest answer using standard POSIX functionality:
http://www.opengroup.org/onlinepubs/9699919799/functions/wordexp.html