title: How to pass ENUM as function argument in C
body: <p>I have an enum declared as;</p>
  
  <pre><code>typedef enum 
  {
     NORMAL = 0,           
     EXTENDED              
  
  }CyclicPrefixType_t;
  
  CyclicPrefixType_t cpType;  
  </code></pre>
  
  <p>I need a function that takes this as an argument  :</p>
  
  <pre><code>fun (CyclicPrefixType_t cpType) ;  
  </code></pre>
  
  <p>func declaration is   :</p>
  
  <pre><code>void fun(CyclicPrefixType_t cpType);
  </code></pre>
  
  <p>Please help. I don't think it is correct.</p>
  
  <p>Thanks</p>