to_hex
fputc(to_hex(bytes[i] / 16), out);
fputc(to_hex(bytes[i] % 16), out);
static char to_hex(int n);