title: Should struct definitions go in .h or .c file?
body: <p>I've seen both full definitions of <code>struct</code>s in headers and just declarations—is there any advantage to one method over the other?</p>
  <p>If it makes a difference, I usually typedef a struct like so in the <code>.h</code></p>
  <pre><code>typedef struct s s_t;
  </code></pre>
  <hr />
  <p>To be clear, the options are declaration in the header file and definition in the class, or both declaration and definition in the header file. Both should result in the same usability, even if one is by linkage, shouldn't they?</p>
  <hr />
  <p>I see many almost duplicates, e.g. <a href="https://stackoverflow.com/questions/4136888/declaring-a-struct-in-h-file-and-implementing-in-c-file">here</a> but no exact matches. Please correct me if I'm wrong in this regard.</p>