PS: Il Sab, 16 Febbraio 2013 11:08 am, bodr...@mail.dm.unipi.it ha scritto: > Il Ven, 15 Febbraio 2013 3:51 pm, Niels Möller ha scritto: >> /* Copy x, which must be at most xn limbs, to the {xp, xn} area, >> zero-padding if needed. Not sure what to do if x is too large to >> fit, or if x < 0. */ >> void >> mpz_get_mpn (mp_limb_t *xp, mp_size_t xn, const mpz_t x);
Neither mpz_get_str nor mpz_export get the size as a parameter, both assume that, if the pointer is not NULL, there is "enough space for the data". Both return the pointer. -- http://bodrato.it/toom-cook/ _______________________________________________ gmp-devel mailing list gmp-devel@gmplib.org http://gmplib.org/mailman/listinfo/gmp-devel