W3cubDocs

/Crystal

C bindings

Crystal allows you to bind to existing C libraries without writing a single line in C.

Additionally, it provides some conveniences like out and to_unsafe so writing bindings is as painless as possible.

To the extent possible under law, the persons who contributed to this workhave waived
all copyright and related or neighboring rights to this workby associating CC0 with it.
https://crystal-lang.org/docs/syntax_and_semantics/c_bindings/index.html