title: Typedef enum to string in C
body: <p>I have error typedefs as follows.</p>
  
  <pre><code>typedef enum {  Connection_Error
      , Parity_Error
      , Data_Read_Error 
       } error_t;
  </code></pre>
  
  <p>And I have a function returning the "error_t". I would like to change the enum to string (preferably without using <strong>switch(case)</strong>).</p>
  
  <p>Eg. </p>
  
  <pre><code>char str[20];
  str = function_to_convert_to_string (error_t);
  </code></pre>
  
  <p>Something like that.
  Any suggestions?</p>