From: ts Date: 2001-12-28T16:42:27+09:00 Subject: [ruby-talk:29516] Re: C extensions: ruby and C strings >>>>> "T" == Tomasz Wegrzanowski writes: T> 1) Should I free string here or is it used as string buffer by Ruby ? Yes you must free it, ruby allocate a new string with rb_str_new2 T> 2) Does cstr point to Ruby string buffer or should I free it ? yes, it point to the ruby string buffer. T> 3) Is RSTRING(rstr)->ptr null-terminated ? yes, Guy Decoux