[cffi-devel] How to define a pointer to a 2d array

Luís Oliveira loliveira at common-lisp.net
Sat Nov 23 23:49:49 UTC 2013


On Sat, Nov 23, 2013 at 1:09 AM, Joeish W <joeish80829 at yahoo.com> wrote:
> (labels (foreign-alloc :float :initial-contents '(1.0 -1.0 -1.0 -1.0)))
>
> so how  do i do the 2d array

Have a look at the undocumented foreign-array-alloc function.

HTH,

-- 
Luís Oliveira
http://kerno.org/~luis/



More information about the cffi-devel mailing list