From: "Iñaki Baz Castillo" Date: 2009-04-04T00:43:20+09:00 Subject: Re: (Ruby 1.9.1) error: ‘struct RString’ has no member named ‘ptr’ 2009/4/3 Iñaki Baz Castillo : >> --------------------------------------- >> #include >> #include >> >> static VALUE my_method(VALUE self, VALUE arg) { >> >>        char* name = RSTRING(arg)->ptr; >> --------------------------------------- > > It seems that I mut use: > >        char* name = RSTRING_PTR(arg); > > Am I right? Autoreply: yes :) -- Iñaki Baz Castillo