LispWorks Foreign Language Interface User Guide and Reference Manual > 1 Introduction to the FLI > 1.1 An example of interfacing to a foreign function

NextPrevUpTopContentsIndex

1.1.3 Calling foreign code

Calling the foreign code is the simplest part of using the FLI. The interface to the C function, defined using define-foreign-function, is called like any other Lisp function. In our example, the fahrenheit-to-celsius function takes the temperature in Fahrenheit as its only argument, and returns the temperature in Celsius.


LispWorks Foreign Language Interface User Guide and Reference Manual - 21 Dec 2009

NextPrevUpTopContentsIndex