title: C: function pointer to functions returning enums
body: <p>In C language,using IAR compiler for Cortex uC. Suppose you have three functions like:</p>
  
  <pre><code>Type_enum_1 get_parameter_alpha(void);
  Type_enum_2 get_parameter_beta(void);
  Type_enum_3 get_parameter_gamma(void);
  </code></pre>
  
  <p>I would like to know if it's possible to declare a function pointer that can be assigned to each of the above functions. I've tried using:</p>
  
  <pre><code>uint8_t (*getter_ptr)(void)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>void (*getter_ptr)(void)
  </code></pre>
  
  <p>but no way the compiler accepts the assignment</p>
  
  <pre><code>getter_ptr = get_parameter_alpha
  </code></pre>
  
  <p>Is there a solution to this?</p>
  
  <p>Thanks</p>