Version: 5.0
FFI: Racket Foreign Interface
(require ffi/unsafe) |
The ffi/unsafe library enables the direct use of C-based APIs within Racket programs – without writing any new C code. From the Racket perspective, functions and data with a C-based API are foreign, hence the term foreign interface. Furthermore, since most APIs consist mostly of functions, the foreign interface is sometimes called a foreign function interface, abbreviated FFI.