how do I get the length of an int (uint64_t) e.g. 1 -> 1 100 -> 3, ...
using only the functions available in stdint.h
.
One way I thought of is using a loop:
int len = 0;
while (i != 0) {
i/=10;
len ++; }
But Im sure that there are more efficient ways to do this.