Closed japaric closed 7 years ago
It would be great if you could add an example to FFI chapter based of this Stackoverflow question http://stackoverflow.com/questions/26117197/create-interface-to-c-function-pointers-in-rust
I'm going to close this in favor of https://github.com/rust-lang/rust-by-example/issues/643
The current chapter needs to be split:
#[link]
attribute, ffi functions are unsafeThese topics also need to be covered:
repr(C)
attribute for structsextern fn
to C (does this belong here?)