Hi,
if I use rb_str_new2(something) to return a string value from within
a C function, do I have to free something after that or is something
used within the resulting ruby object?
regards
Hadmut
Hi,
if I use rb_str_new2(something) to return a string value from within
a C function, do I have to free something after that or is something
used within the resulting ruby object?
regards
Hadmut
if I use rb_str_new2(something) to return a string value from within
a C function, do I have to free something after that or is something
used within the resulting ruby object?
rb_str_new2(something) duplicate `something' otherwise it will not
possible to write
VALUE tt(VALUE obj)
{
return rb_str_new2("aa");
}
Guy Decoux
GC will clean it up for you after you’re finished with it (that is, when
nothing refers to it any longer).
On Sat, 10 Apr 2004 18:16:04 +0200, Hadmut Danisch wrote:
Hi,
if I use rb_str_new2(something) to return a string value from within a C
function, do I have to free something after that or is something used
within the resulting ruby object?regards
Hadmut