From: nobu.nokada@... Date: 2002-03-21T19:21:28+09:00 Subject: Re: Other than fork, what is vc++ ruby win missing? Hi, At Thu, 21 Mar 2002 18:55:42 +0900, Lorien Dunn wrote: > > > [2 scanArgs.c ] > > > #include > > > > > > static VALUE _mScanArgs; > > > > > > static VALUE scanArgsTest(int argc, VALUE* argv, VALUE self) > > > { > > > VALUE junk; > > > rb_scan_args(argc,argv,"12",&junk,&junk); > > > > You specifies three arguments, mandatory one and optional two, > > but passes only two pointers. > > > > > return Qnil; > > > } > > > Oops :(. Thanks though. I guess the question is now "Why does it work on > linux?" Accidentally on your box, not linux. Actually, your example segfaulted on my linux box. -- Nobu Nakada