title: C: print value of macro
body: <p>I am working with C legacy code. In the code, a macro is used:</p>
  
  <pre><code>static int _main(A_MACRO *input_obj)
  {
   ....
  </code></pre>
  
  <p>I am not sure what data type A_MACRO declares input_obj to be. How can I print this information to the screen?</p>
  
  <p>I tried to do it like this:</p>
  
  <pre><code>static int _main(A_MACRO *input_obj)
  {
  sprintf("%s is the macro", A_MACRO);
  ....
  </code></pre>
  
  <p>but that resulted in this error message:</p>
  
  <pre><code>error: expected primary-expression before ‘)’ token
  </code></pre>