MCPcopy Create free account
hub / github.com/Craig-Macomber/lol_alloc / hello

Function hello

example/src/lib.rs:14–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12// Box a `u8`!
13#[no_mangle]
14pub extern "C" fn hello() -> *mut u8 {
15 Box::into_raw(Box::new(42))
16}
17
18/// Free a `Box<u8>` that we allocated earlier!
19/// # Safety

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected