[cffi-devel] Mutable Pointers

Stephen Compall s11 at member.fsf.org
Fri Jul 14 00:50:59 UTC 2006


Stuart Sierra wrote:
> Hello,
> 
> I'm working on a CFFI interface to the Perl API (I thought
> it would be fun - ha!) and I need to be able to do C-style
> pointer arithmetic.  That is, I have a foreign pointer
> declared with DEFCVAR and I need to alter the address stored
> there.  I couldn't see a way to do this with CFFI, so I

You've got one half of the answer already -- `make-pointer'.  Now see
`pointer-address'
(http://common-lisp.net/project/cffi/manual/html_node/pointer_002daddress.html).

-- 
Stephen Compall
http://scompall.nocandysw.com/blog



More information about the cffi-devel mailing list