1 2 3 4 5 6 7 8 9 10
#![crate_type = "bin"] #[link(name = "do_cuinit")] extern "system" { fn do_cuinit(flags: u32) -> u32; } fn main() { unsafe { do_cuinit(0) }; }