From: "Aaron D. Gifford" Date: 2011-09-10T03:40:16+09:00 Subject: Re: Strings in a Ruby 1.9 C extension? On Fri, Sep 9, 2011 at 11:32 AM, Michael Edgar wrote: > rb_str_buf_new(long capacity) is what you're looking for. The capacity argument need not include space for a null terminator, the function adds 1 to it for the terminator. > > My typical approach is to look in intern.h and ruby.h for relevant function calls, and then dive into the source to figure out what function does what. Yeah, that's what I've been doing. I must have missed that as that's exactly what I was looking for. Thank you. Aaron out.