title: Printing unsigned short values
body: <pre><code>  unsigned short a;
    char temp[] = "70000";
    a = atoi(temp);
    printf("a: %d\n", a);
  </code></pre>
  
  <p>Gives me the output <code>a: 4464</code> when it should be <code>a: 70000</code> Is there a better way to convert from ASCII to a decimal? The range of a unsigned short is 0 - 65535</p>