Hello all, I need a function to pick up an hex digit from a mpz_t integer. For example: int pick_hex(mpz_t number, int position); For example: number = "123456789abcdef"; position = 3; solution = pick_hex(number, position); // solution = c How I can achieve that? Thanks in advance !