title: C vfprintf function not working with string arguments
body: <p>I'm trying to use vfprintf in the following way<br>
  vfprintf(fp, buffer, arg);
  fp log file that I create using the date and time of the run, a buffer and the rest of the args</p>
  
  <pre><code>fp = fopen(filename, "a");
  va_start(arg, message);
  vprintf(message, arg); // print stdout
  vfprintf(fp, buffer, arg); // print to file
  va_end(arg);
  fclose(fp);
  </code></pre>
  
  <p>it works perfectly with numbers and it dies horribly with the error: vfprintf source not found at ....</p>
  
  <p>Does anyone have any idea what I'm doing wrong by any chance?</p>