String.c question

How does rb_str_cat differ from rb_str_buf_cat?

I have a a String object, a C pointer to a char array, and the length of
the array. The array is 10KB or even 100KB. I want to cat the char array
to the String. Which is the better function to use?

In message “Re: string.c question”
on Sun, 14 Dec 2008 07:29:17 +0900, Tim H. [email protected]
writes:

|How does rb_str_cat differ from rb_str_buf_cat?

rb_str_buf_cat() is a function to use with strings created by
rb_str_buf_new(). If you’re not sure use rb_str_cat().

          matz.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs