Oops: > C: > #include "gmp.h" > mpz_t t; > mpz_init (t); > mpz_set_str (t, "01234567890123456789", 0); > mpz_out_str (stdout, 16, t);
this will interpret the string as octal (because of the 'autodetect' base 0). Better: > mpz_set_str (t, "01234567890123456789", 10); or > mpz_set_str (t, "1234567890123456789", 0); I am too lazy to check if the same applies to the Bigint example... :) Sorry, Martin ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ OpenCA-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openca-devel
