I have interpreter from another language in C. I have to pass code (about 200 lines) from another language to this interpreter and here problem occur.
char* command_line[] = { "", "-e", "print \"Hello from C!\\n\";" }; This code is parse by:
(..) parser(my_p, NULL, 3, command_line, (char **)NULL); (...) In code abobe I use array but even simple code have to be wrapped with \ before chars like " ; | \ etc.
How to avoid this problem and pass more then 200 multi row lines of code comfortable?
parserdo? You can't tell anything from the question as it is.