allocation functions

Niels Möller nisse@lysator.liu.se
18 Dec 2002 10:19:11 +0100


Kevin Ryde <user42@zip.com.au> 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.

/Niels