title: If I do a `typedef` in C or C++, when should I add `_t` at the end of typedef'ed type?
body: <p>I am confused when should I add the trailing <code>_t</code> to <code>typedef</code>'ed types?</p>
  
  <p>For example, should I do this:</p>
  
  <pre><code>typedef struct image image_t;
  </code></pre>
  
  <p>or this:</p>
  
  <pre><code>typedef struct image image;
  </code></pre>
  
  <p>What are the general rules?</p>
  
  <p>Another example, should I do this:</p>
  
  <pre><code>typdef enum { ARRAY_CLOSED, ARRAY_OPEN, ARRAY_HALFOPEN } array_type_t;
  </code></pre>
  
  <p>or this:</p>
  
  <pre><code>typdef enum { ARRAY_CLOSED, ARRAY_OPEN, ARRAY_HALFOPEN } array_type;
  </code></pre>
  
  <p>Please enlighten me.</p>
  
  <p>Thanks, Boda Cydo.</p>