title: Convert unsigned short to char
body: <p>I know there's other posts like this but I think mine is different. I have a group of numbers I wish to display. However, it's saved as unsigned short. As it's given to me from a network buffer, all my data is unsigned short format. So for a serial number starting with "ABC-" the two unsigned shorts will be holding 0x4142 and 0x432D (Already in ASCII format). I need to convert those to type char to display using printf and %s, but for the rest of my system, they need to remain as an unsigned short. This is what I've tried so far, but the output is blank:</p>
  
  <pre><code>unsigned char * num[3];
  
  num[0] = (unsigned char*)(SYSTEM_N &gt;&gt; 8);
  num[1] = (unsigned char*)(SYSTEM_N &amp; 0x00FF);
  printf("System Number: %s \r\n", num);
  </code></pre>
  
  <p>Can anyone shed some light on this for me? Thanks!</p>