Scheme Medium · Lesson 9

Calling C with the foreign function interface

Load libc with dynamic-link, wrap symbols via pointer->procedure, pass pointers and ints, and pack structs with make-c-struct / parse-c-struct.

Lessons · Scheme Medium · Lesson 9 of 10

Calling C with the foreign function interface

Load libc with dynamic-link, wrap symbols via pointer->procedure, pass pointers and ints, and pack structs with make-c-struct / parse-c-struct.

Illustration for Scheme
Load libc with dynamic-link, wrap symbols via pointer->procedure, pass pointers and ints, and pack structs with make-c-struct / parse-c-struct.