title: Method to convert from Hex to Integer in C, can't get lowercase!
body: <p>Hey everyone, just a quick thing, I have the hex to integer working, but I need to get the numbers lowercase.  Here's what I have, any ideas to get to get the A thru F case insensitive?</p>
  
  <pre><code>int htoi(char f[]) {
      int  z, n;
      n = 0;
  
      for (z = 0; f[z] &gt;= '0' &amp;&amp; f[z] &lt;= 'F'; ++z) 
          if (f[z] &gt;= 'A' &amp;&amp; f[z] &lt;= 'F')
              n = 10 + 16 * n + (f[z] - 'A');
          else
              n = 16 * n + (f[z] - '0');
  }
  </code></pre>
  
  <p>Probably just a small thing, but I'd like to include a-f and A-F.  Thanks for your help!</p>