void my_print_b_16(unsigned long vl, int nbc) { while (vl / (my_power_it(16, nbc)) == 0) { my_putchar('0'); --nbc; } my_putnbr_base(vl, "0123456789abcdef"); }
int get_size_for_char(int v) { int size; size = 1; while (v / my_power_it(10, size) > 0) ++size; size = (v <= 9 ? 1 : size + 1); return (size); }
int my_while(int nb) { int n; int nbc; nbc = -1; n = nb; while (n != 0) { n = n / 10; nbc = nbc + 1; } nbc = my_power_it(10, nbc); while (nbc != 0) { n = nb / nbc; n = n % 10; my_putchar(n + 48); nbc = nbc / 10; } return (0); }