package ctypes
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Combinators for binding to C libraries without writing any C
Install
dune-project
Dependency
Authors
Maintainers
Sources
0.10.1.tar.gz
sha256=f0f71e82f30eeb9a25a568bd8ff87f659cdb0b8134de05aea2a494cba2fa038d
md5=45f0eaef250b03a7885042b3077aff20
Description
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.
Published: 18 Oct 2016
Dependencies (4)
-
conf-pkg-config
build -
ocamlfind
build - base-bytes
-
ocaml
>= "4.01.0" & < "5.2"
Dev Dependencies (3)
-
ctypes-foreign
with-test -
ounit
with-test -
lwt
with-test & >= "2.4.7" & < "4.0.0"
Used by (92)
- argon2
- bitgenerators
- ceph
-
cf
< "0.5.0" -
checked_oint
< "0.4.1" - cmark
- cmarker
- ctypes-build
-
ctypes-foreign
= "0.18.0" - ctypes-zarith
- ctypes_stubs_js
-
directories
< "0.2" -
dune
>= "3.17.2" - flock
- fsevents
- gdal
- gl-legacy
- gobject-introspection
-
hacl-star-raw
< "0.4.0" - imguiml
-
kqueue
< "0.2.0" - libudev
- lilv
-
llvm
>= "3.7" -
lmdb
< "1.0" -
lp-glpk
< "0.4.0" - lp-gurobi
- lz4
-
mariadb
< "1.2.0" -
memcpy
< "0.2.1" -
mpg123
< "0.2" - netlink
- ocephes
- opasswd
-
opencc
< "transition" - opencc0
- opencc1
- opencc1_1
- orocksdb
- osx-acl
- osx-attr
- osx-cf
- osx-fsevents
- osx-mount
- osx-secure-transport
- osx-xattr
-
owl
< "0.9.0" - pci
-
pg_query
>= "0.9.8" - pkcs11-driver
- portaudio_c_bindings
-
posix-bindings
< "3" - posix-errno
- posix-getopt
- posix-math2
- posix-resource
- posix-signal
- posix-socket
- posix-socket-unix
- posix-stat
- posix-time2
- posix-types
- posix-uname
- posix-unistd
-
qcstm
>= "0.1.1" -
quickjs
< "0.1.1" -
raylib
< "0.3.1" - reed-solomon-erasure
- sanlock
- sarek
- sattools
- sodium
-
spin
>= "0.8.0" - spoc
- sys-socket
- sys-socket-unix
- tensorflow
-
tgls
< "0.9.0" -
torch
< "0.4" | = "0.6" - tsdl-image
- tsdl-mixer
- tsdl-ttf
-
unix-errno
>= "0.4.1" & < "0.6.0" - unix-sys-resource
- unix-sys-stat
- unix-time
- unix-type-representations
- uring-trace
- wasmer
- wasmtime
- xxhash
-
zstd
< "0.4"
Conflicts (4)
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page