Найдите длину int числа в c

int nDigits = floor(log10(abs(the_integer))) + 1;
Weary Wolf