Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!bu.edu!encore!pierson From: pierson@encore.com (Dan L. Pierson) Newsgroups: comp.lang.lisp Subject: Re: call C proceudre from Lisp Message-ID: Date: 25 Apr 91 14:50:32 GMT References: Sender: news@Encore.COM Distribution: comp.lang.lisp Organization: Encore Computer Corporation Lines: 20 Nntp-Posting-Host: xenna.encore.com In-reply-to: tl@tenacity.cs.uchicago.edu's message of 25 Apr 91 00:00:31 GMT Regarding call C proceudre from Lisp; tl@tenacity.cs.uchicago.edu (Teng Li) adds: > Could anyone over there tell me how to include C subroutines which > would be written in a file into a Lisp program and how to call them > from Common Lisp? I need to do system call to excute some shell > commands, thus I have to write C code to deal with it.(Is that > right?) And my routines would be called by Lisp program. Do I need > some interfaces to make the C routines be recognized by Lisp? Barmar answered the foreign function part so I won't deal with that. If all you need to do is execute shell commands, many Common Lisp's already have an extension to do that. Lucid's is RUN-PROGRAM, KCL's is SYSTEM. -- dan In real life: Dan Pierson, Encore Computer Corporation, Research UUCP: {talcott,linus,necis,decvax}!encore!pierson Internet: pierson@encore.com