title: Convert char* to uint16_t in C
body: <p>I have char array like </p>
  
  <pre><code>char* str = 0x058f;
  </code></pre>
  
  <p>What should i do to convert this value to int and uint16_t and print correctly this value by uint16_t type? </p>
  
  <p>That mean i want the uint16_t result is 058f as well:</p>
  
  <pre><code> uint16_t result = 0x058f;
  </code></pre>