From: Michael Kappert <michael.kappert@gm...> - 2007-01-31 00:55:29
I'm trying to call a function returning a zero-terminated sequence of
strings (via dynamic FFI on win32), like this:
(defpackage "FFI-USER" (:use "COMMON-LISP" "FFI"))
(setf ext:*foreign-encoding* charset:utf-8)
(def-call-out test (:name "message")
(:return-type (c-array-ptr c-string)))
I think this should work?
Depending on the charset I use, FFI does not find the function in the
library, or I'm getting a sigsegv in strlen() when converting the result
from foreign format.
Get latest updates about Open Source Projects, Conferences and News.