[C ext to Ruby] how to produce from C, a ruby symbol?

i'd like to use ruby symbols from C , i've found ID2SYM and SYM2ID but
nothing like STR2SYM in ruby.h

i'd like to produce those ruby symbols :

:verbose and : noop

from C side...

i'm able to retrieve, from C side, the value of a key provided i know,
in advance the key and the key is a string...

Yvon

ID2SYM( rb_intern( "verbose" ) );
ID2SYM( rb_intern( "noop" ) );

Blessings,
TwP

···

On 8/17/07, unbewust <yvon.thoraval@gmail.com> wrote:

i'd like to use ruby symbols from C , i've found ID2SYM and SYM2ID but
nothing like STR2SYM in ruby.h

i'd like to produce those ruby symbols :

:verbose and : noop

unbewust wrote:

i'd like to use ruby symbols from C , i've found ID2SYM and SYM2ID but
nothing like STR2SYM in ruby.h
  

rb_intern()

···

--
RMagick OS X Installer [http://rubyforge.org/projects/rmagick/\]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618\]
RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html\]

oop

ID2SYM( rb_intern( "verbose" ) );
ID2SYM( rb_intern( "noop" ) );

fine thanks a lot !

Yvon

···

On 17 août, 16:55, "Tim Pease" <tim.pe...@gmail.com> wrote: