Skip Navigation
Zig Programming Language @lemm.ee

Safely handling C structs in Zig

ash.fail My favorite way to safely handle C structs in Zig

Out of all non-C languages Zig has hands down the best interoperability with it, yet people still write wrappers for libraries. That's because C is C and C has void pointers and other "features", that we'd like to not see in our code at all. In this post I show how I handle writing wrappers, that en...

FFI and C interop and how to do it safely from Zig

0 comments

No comments