From: nobu.nokada@... Date: 2002-10-03T08:33:28+09:00 Subject: Re: using pack and unpack from C Hi, At Thu, 3 Oct 2002 08:19:56 +0900, Ian Macdonald wrote: > How do you call pack and unpack from C when writing an extension? > > I would expect there to be rb_ary_pack() and rb_str_unpack() functions > defined in ruby.h or intern.h, but they're not there. They're pack_pack() and pack_unpack(), and static. You need to use rb_funcall(). -- Nobu Nakada