title: Printing strings (char*) loaded from file without escaped special sequences (like \n)
body: <p>I'm currently writing a parser for my toy language, and as a part of that parser i have written print function that well... basically prints its argument. For string constant all it does is</p>
  
  <pre><code>printf("%s", pointer);
  </code></pre>
  
  <p>so </p>
  
  <pre><code>print("\n")
  </code></pre>
  
  <p>should be executed as</p>
  
  <pre><code>printf("%s", ptr_to_loaded_string);
  </code></pre>
  
  <p>(more or less)</p>
  
  <p>However, my current problem is, that C escapes special character sequences while reading script file. So instead of "\n" I get "\\n".</p>
  
  <p>My question is: is there some way I can avoid the escaping of this sequences, and if not what's the best way to deal with them? I'm currently thinking about search and replace - replace each sequence of 2 '\' with one '\', but it may be a little problematic (string length change, reallocing, etc.) - i want to avoid that solution unless it's absolutely necessary.</p>
  
  <p>edit: argh, stackoverflow escaped my example....</p>