title: Hexadecimal to decimal conversion with sprintf in C
body: <p>I have</p>
  
  <pre><code>sprintf(ascii,"%X",number) // number = 63 is a decimal integer`
  </code></pre>
  
  <p><code>char ascii[] = {51, 70, 0, 0, 0, .... }</code>  which displayed as "3F"</p>
  
  <p>When I have</p>
  
  <pre><code>value = atoi(ascii);
  </code></pre>
  
  <p>It returns <code>value = 3</code>  not 63.</p>
  
  <p>The thing that I want is hexadecimal conversion with sprintf, display it but then save the value inside the table as decimal to another variable.</p>
  
  <p>How it can be done ?</p>