Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!mit-eddie!mit-amt!sokolov From: sokolov@mit-amt (Michael Sokolov) Newsgroups: comp.lang.lisp Subject: Re: Interfacing Lucid and C Message-ID: <3559@mit-amt> Date: 9 Feb 89 18:20:45 GMT References: <5296@lifia.imag.fr> Reply-To: sokolov@media-lab.media.mit.edu (Michael Sokolov) Organization: MIT Media Lab, Cambridge MA Lines: 14 Re: FILE / stream connection. Try using the lisp function "extract-stream-handles." I believe that this returns the file descriptor (not FILE pointer). Then you could use UNIX "read" command instead of getchar. I don't think Lucid makes a FILE pointer. As far as passing general structures back and forth, there is a not-very- pretty way to do it, which is to call the structure an array of type '(unsigned-byte 32) in lisp, and a structure in C. Then you can access the elements of a C structure from Lisp if you know the correct offsets into the structure... -MS