ctypesversion

Combinators for binding to C libraries without writing any C

ctypes is a library for binding to C libraries using pure OCaml. The primary aim is to make writing C extensions as straightforward as possible.

The core of ctypes is a set of combinators for describing the structure of C types -- numeric types, arrays, pointers, structs, unions and functions. You can use these combinators to describe the types of the functions that you want to call, then bind directly to those functions -- all without writing or generating any C!

To install the optional ctypes.foreign interface (which uses libffi to provide dynamic access to foreign libraries), you will need to also install the ctypes-foreign optional dependency:

opam install ctypes ctypes-foreign

This will make the ctypes.foreign ocamlfind subpackage available.

Authoryallop@gmail.com
LicenseMIT
Published
Homepagehttps://github.com/yallop/ocaml-ctypes
Issue Trackerhttp://github.com/yallop/ocaml-ctypes/issues
Maintaineryallop@gmail.com
Dependencies
Optional dependencies
Conflicts
Source [http] https://github.com/yallop/ocaml-ctypes/archive/0.15.1.tar.gz
sha256=8be72c0b614b8c4a6f8f29183c385cfd649e10f0e465c1c8ddcac00409f7c37e
md5=e87b2646f7597e00b8b9a1f5f8e36ee6
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ctypes/ctypes.0.15.1/opam
Optionally used by