title: passing a hex number to a function
body: <p>gcc 4.4.2 c89</p>
  
  <p>I have these defines in our API header file.</p>
  
  <pre><code>/* Reason for releasing call */
  #define UNASSIGNED_NUMBER      0x01  /* Number unassigned / unallocated */
  #define NORMAL_CLEARING        0x10  /* Call dropped under normal conditions*/
  #define CHANNEL_UNACCEPTABLE   0x06
  #define USER_BUSY              0x11  /* End user is busy */
  .
  .
  .
  </code></pre>
  
  <p>However, I want to pass one to a function but I am not sure of the type. I could pass as just an integer value? The release_call function takes one of these as its parameter. However, I am not sure as the defines are defined as hex notation. </p>
  
  <pre><code>drop_and_release_call(23, 6); /* Dropping call for CHANNEL_UNACCEPTABLE */
  
  
  uint32_t drop_and_release_call(uint32_t port_num, uint32_t reason)
  {
      release_call(port_num, reason);
  }
  </code></pre>
  
  <p>Many thanks for any suggestions,</p>