allocation functions

Niels Möller
18 Dec 2002 10:19:11 +0100

Kevin Ryde <> writes:

> > 2) when using mpz_get_str, the returned string is allocated using the current
> >    gmp allocation function, so one would like to free it using the current
> >    gmp free function, but there it is not documented (see 1).
> If an application has set the functions then presumably it knows what
> they are :-).

Right, but you need to be able to free the string even if you have
*not* installed your own allocation functions.