1
use std::os::raw::c_char;
2
3
extern "C" {
4
fn c_function(name: *const c_char);
5
}
6
7
fn main() {
8
println!("ok");
9
let name = b"Rust Hostbuild\0";
10
unsafe {
11
c_function(name.as_ptr() as _);
12
13