From: Phlip Date: 2007-07-26T02:14:58+09:00 Subject: Re: Ruby extension with vararg function woes. Nobuyoshi Nakada wrote: > No portable way, AFAIK.  And even if there is a such way, it > would need va_list version of the function. That's why the OP needs to find a non-portable way, for that Nokia gizmo. The C newsgroup is still the best bet, because the Ruby side is less important. >> Another suggestion: Look inside Ruby's source for sprintf. > > Which do you mean rb_f_sprintf(), or vsnprintf()? At the time, I meant Ruby's own sprintf(), because I guessed it jumped into vsnprintf(). Like I posted here, it don't, so don't look there. Maybe nothing in Ruby's source code exploits any C varargs the way the OP needs. -- Phlip http://www.oreilly.com/catalog/9780596510657/ ^ assert_xpath http://tinyurl.com/23tlu5 <-- assert_raise_message