package ctypes
Combinators for binding to C libraries without writing any C
Install
Dune Dependency
Authors
Maintainers
Sources
0.17.1.tar.gz
sha256=41673c2eb93ca99ed3de183bef3e6b436c67a0d902b110be5da158aad922a7e9
md5=508ea062105518c14fd516aa2ea9db5e
doc/ctypes.foreign.base/Dl/index.html
Module Dl
Bindings to the dlopen / dlsym interface.
The type of dynamic libraries, as returned by dlopen
.
Flags for dlopen
Note for windows users: Only RTLD_NOLOAD
and RTLD_NODELETE
are supported. Passing no or any other flags to dlopen
will result in standard behaviour: just LoadLibrary is called. If RTLD_NOLOAD
is specified and the module is not already loaded, a DL_error
with the string "library not loaded" is thrown; there is however no test, if such a library exists at all (like under linux).
Open a dynamic library.
Note for windows users: the filename must be encoded in UTF-8
val dlclose : handle:library -> unit
Close a dynamic library.
val dlsym : ?handle:library -> symbol:string -> nativeint
Look up a symbol in a dynamic library.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>