# \[BLOG\] A (Possibly) Safer Interface to the Ctypes FFI

**URL:** <https://discuss.ocaml.org/t/blog-a-possibly-safer-interface-to-the-ctypes-ffi/14954>\
**Category:** Community\
**Tags:** ctypes, ffi\
**Created:** [July 11, 2024, 5:10pm UTC](https://discuss.ocaml.org/t/blog-a-possibly-safer-interface-to-the-ctypes-ffi/14954 "2024-07-11T17:10:36Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Fizzixnerd](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/fizzixnerd/32/5322_2.png) [@Fizzixnerd](https://discuss.ocaml.org/u/Fizzixnerd)\
**Post date:** [July 17, 2024, 3:09pm UTC](https://discuss.ocaml.org/t/blog-a-possibly-safer-interface-to-the-ctypes-ffi/14954/11 "2024-07-17T15:09:04Z")

</div>

I’ve written a blog post on how `living` currently handles this situation. Please take a look. [[BLOG] A Tour of the Living Library -- A Safer FFI](https://discuss.ocaml.org/t/blog-a-tour-of-the-living-library-a-safer-ffi/14981). I think it’s the best you can do without linear/affine types.

---

_[View the full topic](https://discuss.ocaml.org/t/blog-a-possibly-safer-interface-to-the-ctypes-ffi/14954)._
