Assuming that you are trying to extract the decimal digits, here is a bit of code that may help you:
int val = 329 ; // the value to convert
int result[3] ; // an array containing each decimal digit.
// the least significant digit is in result[0]
int digits = 0 ;
while(val > 0){
result[digits++] = val % 10 ;
val = val / 10 ;
}
This will convert a number containing up to 3 decimal digits and place the result into the result[] array (in reverse order). To simplify the code, there is no error checking, so if the value is larger than 999, the result array will overflow and corruption will occur!!! You can modify this code to suit your particular circumstances.