title: how to store printf into a variable?
body: <p>I want to store a formatted string using something similar to what printf does in C.</p>
  
  <pre><code>char *tmp = (char *)sqlite3_column_text(selectstmt, 2);
  const char *sqlAnswers = printf("select key from answer WHERE key = %s LIMIT 5;", tmp);
  </code></pre>
  
  <p>The latter is an error obviously.</p>