A poorly written OS for the x86 arch. (WIP)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
eOS/lib/util.c

10 lines
142 B

#include "util.h"
uint ulong_len(ulong i) {
int len = 0;
while (i != 0) {
i = i / 10;
++len;
}
return len;
}