[plt-scheme] ffi question, _string/utf-16

From: Robert Nikander (nikander at nc.rr.com)
Date: Fri Oct 26 15:01:21 EDT 2007


I have a C function like

    void get_chars(int n, uint16 *str);

that fills the buffer 'str' with a utf-16 string.  I'd like to call  
it and end up with a Scheme string.  It looks like the "_string/ 
utf-16" ctype knows how to do the conversion, but I don't see how to  
use it in this case.  Can I?


Posted on the users mailing list.