erdiegange:
void processNumber(int number)
{
int x;
unsigned int ones;
int tens;
ones=(number)%10;
x=(number)-ones;
tens=x/10;
updateDisplay(ones,tens);
}
I don't know if it's what's causing your problem but you don't need to round (number) before dividing it by 10 as tens is an int and can't hold the fractional part of the result.
ones=number%10;
tens=number/10;
Also, why the brackets around number?
You are calling a function from within a function. I seem to remember reading that that's a no-no. :~