1 2 3 4 5 6 7 8 9 10
use fmt; use types::c; export @symbol("hello") fn hello(s: const *c::char) const *c::char; export fn main() void = { fmt::println("Hello Hare!")!; let rust_hello_ptr = hello(c::nulstr("Rust\0")); fmt::println(c::tostr(rust_hello_ptr)!)!; };