Hi
the below code print the biginteger to a file in decimal format ,how do i convert the code into printing binary data and hex data into the File instead ??
static void
print_pos( FILE* f, bigint bi )
{
if ( bi_compare( bi_copy( bi ), bi_10 ) >= 0 )
print_pos( f, bi_int_divide( bi_copy( bi ), 10 ) );
putc( bi_int_mod( bi, 10 ) + '0', f );
}
bi_10 is just a type of bigint , how do i modify the above code to print the hex / binary data instead of decimal data ?