[gambit-list] Who must free the string memory?

Alex Queiroz asandroq at gmail.com
Wed Mar 11 09:50:35 EDT 2009


Hallo,

On Mon, Mar 2, 2009 at 5:07 PM, Alex Queiroz <asandroq at gmail.com> wrote:
>
>     I have a C function like this:
>
> ___UCS_2STRING tsk_home_dir(void);
>
>     which is exported like this:
>
> (define home-directory (c-lambda () UCS-2-string "tsk_home_dir"))
>
>     Everytime tsk_home_dir is called it allocates a new string. Who
> must free this memory? C or Scheme?
>

     Hmmm, wasn't my question well written or wasn't it just seen? :)

Cheers,
-- 
-alex
http://www.ventonegro.org/



More information about the Gambit-list mailing list