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 package.

opam install ctypes-foreign

This will make the ctypes-foreign ocamlfind subpackage available.

Tags org:mirage
AuthorJeremy Yallop
LicenseMIT
Published
Homepagehttps://github.com/yallop/ocaml-ctypes
Issue Trackerhttps://github.com/yallop/ocaml-ctypes/issues
MaintainerJeremy Yallop <yallop@gmail.com>
Dependencies
Conflicts
Source [http] https://github.com/yallop/ocaml-ctypes/archive/refs/tags/0.23.0.tar.gz
sha256=cae47d815b27dd4c824a007f1145856044542fe2588d23a443ef4eefec360bf1
md5=b1af973ec9cf7867a63714e92df82f2a
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ctypes/ctypes.0.23.0/opam
Required by
Optionally used by