From: Jim Freeze Date: 2003-04-12T01:50:44+09:00 Subject: Re: rb_str_chomp or rb_str_strip On Saturday, 12 April 2003 at 1:00:44 +0900, ts wrote: > >>>>> "J" == Jim Freeze writes: > > J> How do I access the chomp(!) or strip(!) functions in C? > > res = rb_funcall2(str, rb_intern("strip"), 0, 0); > > res = rb_funcall2(str, rb_intern("chomp"), 0, 0); > is #chomp! called via: res = rb_funcall2(str, rb_intern("chomp!"), 0, 0); If so, is str modified or is res the new string? -- Jim Freeze ---------- A CONS is an object which cares. -- Bernie Greenberg.