title: printf in macro in C
body: <p>I have a macro as such</p>
  
  <pre><code>#define PTF(A,y)    fprintf(file,"%s",A,y);printf("%s %d",A,y);
  </code></pre>
  
  <p>so that it will print to file and console
  so for example i call this macro function</p>
  
  <pre><code>int y=9;
  PTF("\nRound %d \n",y);
  </code></pre>
  
  <p>in a way I need the y=9 to be shown as part of the argument A so my fprintf in file will look like below</p>
  
  <pre><code>Round 9
  </code></pre>
  
  <p>because I have a lot of changes to make if I were to change this, hence hoping for an easy way out =)</p>