From: Luc Heinrich Date: 2008-12-05T04:11:01+09:00 Subject: Re: [ANN] FFI 0.2.0 On 4 déc. 08, at 19:01, Gregory Seidman wrote: > I have been waiting for that feature. Is there a code example of > setting up > a variadic function somewhere? Here's a very simply one: require "rubygems" require "ffi" module Test extend FFI::Library attach_function :printf, [:string, :varargs], :int end Test.printf("The answer is %d\n", :int, 42) Test.printf("The sum of %.1f and %.1f is %.1f\n", :double, 2.5, :double, 1.5, :double, 4.0) -- Luc Heinrich - luc@honk-honk.com