title: Grab Partial Character Array
body: <p>I have a really long character array : <code>unsigned char hexs[50]</code></p>
  
  <p>If I print all the value using for loop:  </p>
  
  <pre><code>for (i = 0; i &lt; sizeof(hexs); i++)
          printf("%02x\n", hexs[i]);
  </code></pre>
  
  <p>It will give me bunch of value like:</p>
  
  <pre><code>2e
  1e
  a3
  ....
  a1
  </code></pre>
  
  <p>If I only want to grab <code>2e and 1e</code>value into a new character array (ex: <code>unsigned char chosen_one[2]</code>), what should I do?</p>