From: Anupama Potluri; Masters
Subject: Accessing C structures from Lucid Common Lisp
Date: 
Message-ID: <3vte7u$la0@news.umbc.edu>
Hi!

I want to send a pointer of a structure defined to a lisp function which will
be called from a C function. In the Lisp Function, I want to access the fields
of the C structure and set their values etc. Can anyone suggest ways of doing
this? I have been trying to pass the structure as follows

(def-foreign-callable test (:return-type (:pointer record))
		((rec-var (:pointer record)))
		<body of the function where I access the fields>)

record - a structure defined in C function.

Thanks in advance for any help.

Anupama Potluri.