title: c function to return formatted string
body: <p>I would like to do something like this: </p>
  
  <pre><code>writeLog(printf("This is the error: %s", error));
  </code></pre>
  
  <p>so i am looking for a function which returns a formatted string.</p>