title: Print the structure fields and values in C
body: <p>I am interested in printing the structure fields .</p>
  
  <pre><code>Typedef struct
  {
     UINT32 thread_id;
     BOOL   is_valid;
  }T_THREAD;
  </code></pre>
  
  <p>Is there a way in "C" language to print the contents of a structure, something like</p>
  
  <p>ex: <code>print (T_THREAD)</code> and output should be like</p>
  
  <pre><code>Contents of a structure T_THREAD are 
    thread_id
    is_valid
  </code></pre>