A pointer to a structure.
A foreign structure type.
A slot name in the type.
A pointer to the slot slot-name.
Returns a pointer to the location of the slot slot-name in a foreign object of type type at ptr. The returned pointer points inside the structure. Both the pointer and the memory it points to have the same extent as ptr.
For aggregate slots, this is the same value returned by
(defcstruct point "Pointer structure." (x :int) (y :int)) CFFI> (with-foreign-object (ptr '(:struct point)) (foreign-slot-pointer ptr '(:struct point) 'x)) ⇒ #<FOREIGN-ADDRESS #xBFFF6E60> ;; Note: the exact pointer representation varies from lisp to lisp.