I\'m trying to learn more about FFI in Rust and linking with C libraries, specifically libc. While on my "quest", I came across the following problem.
libc
How about using mem::zeroed? The docs even say:
This is useful for FFI functions sometimes, but should generally be avoided.