On Dec 28, 2005, at 8:20 AM, Takaaki Tateishi wrote:= > Brian Caswell wrote: >> However, the function I'm wrapping doesn't seem to work as I >> expect it to. >> >> extern "int blob_read(void *blob, void *buf, int size)" > ... >> def read (blob, len) >> ptr = DL.malloc(len) >> ret = Dnet.blob_read(blob, ptr.ref, len) >> return ret.to_s >> end > > How about using "ptr" instead of "ptr.ref"? Thanks! That worked, though the to_s doesn't, I needed to_str. Brian