From: Daniel Berger Date: 2007-03-19T07:15:06+09:00 Subject: Re: Problem trying to use varargs in private function within C extension On Mar 18, 10:01 am, "Patrick Hurley" wrote: > Dan, > > In you example pure C code you are calling test with 2 parameters in > your ruby code, only one. Your prototype has one mandatory param, and > the function actually has two. If you change: > > total = test("hello"); > > to > > total = test("hello", 3); > > Does it compile? > pth Yes, the C code compiles either way. The Ruby code will only compile if I provide the 2nd argument. Regards, Dan