From: Yukihiro Matsumoto Date: 2011-02-05T10:43:08+09:00 Subject: Re: Does RSTRING_PTR() return a '\0' terminated C? Hi, In message "Re: Does RSTRING_PTR() return a '\0' terminated C?" on Sat, 5 Feb 2011 03:59:36 +0900, I$(D+P(Baki Baz Castillo writes: | |Hi, in a Ruby C extension I need to get a '\0' terminated string given |a Ruby string. I'm just interesed in Ruby 1.9. It was true on 1.8 but no longer on 1.9. If you need NUL terminated string, use StringValueCStr(). matz.