Memory managment of set_str functions

Vincent Lefevre vincent at vinc17.net
Thu Apr 2 16:29:16 UTC 2020


On 2020-03-31 17:09:54 -0500, noreply at z505.com wrote:
> If a pointer to char is allocated in some of the functions where the huge
> number is a string, how should memory be managed and on the DLL side or the
> program side using the DLL?

For the set_str functions, the string is provided by the user.
Thus it is never allocated by the function.

-- 
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list