title: Hex into unsigned integer
body: <p>I'm trying to convert a string, split it and then take the hex and turn it into an unsigned integer
  (for example, the string in the example would be <code>"read16 8033B21A"</code>).
  I've been stuck on this one for a long time.</p>
  
  <p>Any points would be very appreciated? </p>
  
  <pre><code>else if (strncmp(input, "read16 ", 7) == 0){
      char * tempaddr;
      sscanf(input, "read16 %c", &amp;tempaddr); 
      unsigned int addr;
      sscanf(tempaddr, "%x", &amp;addr);
      unsigned int memvalue=debugger_read_16(addr);
  }
  </code></pre>
  
  <p>It likes to segfault after and I cannot figure out what I'm doing wrong.</p>