title: scanf a big hexadecimal value
body: <p>I have a issue trying to use scanf to get a big hexadecimal num (12 chars) from the user.</p>
  
  <p>it seems to only get the last 8 chars, eg - ABFFFFFFFF will become 0000FFFFFFFF.</p>
  
  <p>this is my code -</p>
  
  <pre><code>unsigned long long address;
  scanf("%x",&amp;address);
  printf("Address: %#014x", address);
  </code></pre>
  
  <p>for this input: "ABFFFFFFFF"  the output would be:</p>
  
  <blockquote>
    <p>Address: 0x0000ffffffff</p>
  </blockquote>
  
  <p>i have tried playing a bit with the scanf format, but to no avail.</p>