9.2.0.3
1 Overview
The ffi2 library supports directly calling C functions from Racket. To set up those calls, the C function must be described on the Racket side, including the types for it’s arguments and results that imply conversions between Racket and C values. In principle, descriptions of C functions could be extracted from header files, but most C bindings for Racket are written independent of header files. This section steps you through the process with an extended example.
The running tutorial in this section is based on the original FFI tutorial series written by Asumu Takikawa.