I need a function to convert \"explicit\" escape sequences into the relative non-printable character. Es:
char str[] = \"\\\\n\"; cout << \"Line1\" <
Have you considered using printf? (or one of its relatives)