Subject: Re: [ruby-ffi] Re: How to declare (int *argc, char *argv)? |
From: Matijs van Zuijlen |
Date: 8/21/11 1:17 PM |
To: ruby-ffi@googlegroups.com |
I've read that :pointer can be used as output array of strings.
(int * argc, char ** argv)
Can I use :int, as output int parameter?
[:int, :pointer]
So resulats (if I can use :int)
attache_function :glutInit, [:int, :pointer], :void
Then how to change ARGV (array of strings) so it can be passed
as :pointer?