pure-ffi provides {an interface to libffi which enables you to call C functions from Pure and vice versa.} It goes beyond Pure’s built-in C interface in that it also handles C structs and makes Pure functions callable from C. Moreover, depending on the libffi implementation, it may also be possible to call foreign languages other than C.

WWW: https://github.com/agraef/pure-lang/wiki/Addons#pure-ffi
