title: How to convert a 5-bytes hex number to 10base number and represent it in C-type string?
body: <p>I have a hex number which consist of 5 bytes: 0xEEDDCCBBAA. This number is stored in an array: [0xEE 0xDD, 0xCC, 0xBB, 0xAA]. I want to convert it to 10base decimal number and represent it as a C-type string: "1025923398570". (0xEEDDCCBBAA is equal to 1,025,923,398,570)</p>
  
  <p>One problem is my system only supports max. 32-bits type variable, so I cannot have a single variable to store this number or perform any type of operation larger than 32-bits. For example I cannot do:</p>
  
  <pre><code>unsigned long long val = 0xeeddccbbaa;
  unsigned char buf[50];
  sprintf(buf, "%d", val);
  </code></pre>
  
  <p>Thank you very much.</p>
  
  <p>Edit: As my question seems confusing so I wrote it again.</p>