From: Joel VanderWerf Date: 2006-05-24T07:37:21+09:00 Subject: Re: Using rb_str_insert from c Phil Jackson wrote: > Hi all, > > The function: > > static VALUE rb_str_insert(VALUE, VALUE, VALUE) > > is defined in string.c but is static and so is not avalible to me to call > directly on my string. I have a feeling rb_funcall is my answer but I can't > find any decent documentation on getting the functions ID. > > Can anyone help? > > Cheers, > Phil Offhand I think this will work: id_insert = rb_intern("insert"); // you can do this once rb_funcall(str, id_insert, 2, idx, str2); -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407