From: Adam Bender Date: 2008-01-22T03:58:44+09:00 Subject: Swig: how to convert char* to Array? ------=_Part_17335_28340042.1200941930400 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I have a C++ library that I'm trying to access in Ruby. One of the C++ functions returns a char* and I would like this to be converted to an Array (since the char* may have 0x00 in it, which terminate a Ruby string prematurely). I'm trying to write a typemap for the conversion, but I'm getting stuck on determining the length of the array -- I can't pass that as a parameter, since this is an *out* typemap. So my question is, does anyone have a way to convert char* to Array in Swig, hopefully with an example? Thanks! Adam ------=_Part_17335_28340042.1200941930400--