Path: utzoo!attcan!uunet!husc6!spdcc!bloom-beacon!athena.mit.edu!ilham From: ilham@athena.mit.edu (Ilhamuddin Ahmed) Newsgroups: comp.lang.lisp Subject: Calling C from Common Lisp and vice versa Keywords: Lisp, C Message-ID: <6454@bloom-beacon.MIT.EDU> Date: 28 Jul 88 05:27:42 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: ilham@athena.mit.edu (Ilhamuddin Ahmed) Organization: MIT Laboratory for Computer Science Lines: 26 I am not sure if this has been asked before or not as I just joined this newsgroup, and if it has I apologise. I have an application in Common Lisp which consists of an array as a data structure. I wish to pass this array to a C function which goes through the array and display a graph in an X window. My problem is that how would I call a C function from Common Lisp and how would I pass the array (or any data structure for that matter) from Lisp to C. The other side of the story is that, I have buttons in X (implemented in C) which when clicked should change the state of the Common Lisp program. So in this case, how can I execute a Common Lisp function from C. Any help would be very much appreciated. Thanks in advance. - Ilham. ------------------------------------------------------------------------------- Ilhamuddin Ahmed, M.I.T. '91 | Arpa: ilham@juicy-juice.lcs.mit.edu M.I.T. Lab for Computer Science | ilham@athena.mit.edu Rm 213, 545 Technology Square, | ilham@eniac.seas.upenn.edu Cambridge, Massachusetts 02139. | UUCP: {backbone..}!mit-eddie!athena!ilham -------------------------------------------------------------------------------