Question about mpz_set_str

Kevin Ryde user42@zip.com.au
Tue, 07 Jan 2003 07:01:28 +1000


Minh Nguyen <md6nguyen@yahoo.com> writes:
>
> 1/ When GMP reallocates a buffer, would the old buffer be freed? 

It's usually done with a realloc call, but in a couple of places by
mallocing a new buffer and freeing the old.

> 2/ Is it true that GMP only considers to enlarge a buffer, but never
> considers to shorten it?

Yes.