void print_octal(unsigned int n) { for (int i = 30; i >=0 ; i-=3) {{ // 0x7 = 111 unsigned char x = ((n >> i) & 0x7); printf("%o",x); } } }