title: C++ char hex value to byte
body: <p>I have a hex value in a char pointer (for example 'F3'), and I would like to convert it to byte, because I want it to put in an array. I know that there are many solutions, but they are not what I wanted.</p>
  
  <p>Thanks in advance!</p>
  
  <p>EDIT:</p>
  
  <p>Okay, maybe I have not written everything.
  What I have now:</p>
  
  <pre><code>char aChar[5];
  itoa (j, aChar, 16);
  </code></pre>
  
  <p>j is now 3, and I just want it in byte. Atoi, scanf doesn't help, those are the different solutions.</p>