c2ffi is a tool for extracting declarations from C source and header using Clang's AST. This is similar to SWIG or Verrazano. However, unlike SWIG, this uses Clang to actually parse the input, and handles complex declarations (e.g., with math). It should also be easier to build than Verrazano.

Homepage: https://github.com/rpav/c2ffi


See Verrazano or SWIG are alternative ffi tools.

Other 'c2ffi'

There is a prior, unrelated project called "c2ffi" that is no longer actively developed.

ASDF-install package (obsolete) http://common-lisp.net/project/c2ffi/files/c2ffi_0.1.tar.gz