title: Best way to get individual digits from int for radix sort in C/C++
body: <p>What is the best way to get individual digits from an int with n number of digits for use in a radix sort algorithm? I'm wondering if there is a particularly good way to do it in C/C++, if not what is the general best solution?</p>
  
  <p>edit: just to clarify, i was looking for a solution other than converting it to a string and treating it like an array of digits.</p>