How can I pass a uninitialized value to a C ffi function in @rustlang? Should I use maybeuninit?
-
-
Thanks. Is it mandatory to call assume_int() then? I just need to get it as a mut_ptr that I need to pass around (I am making a safe wrapper around my unsafe c bindings)
-
After the C returns, yeah. See https://doc.rust-lang.org/stable/std/mem/union.MaybeUninit.html#out-pointers …
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.