summaryrefslogtreecommitdiff
path: root/doc/interoperability/rust-from-c/foo/foo.rs
blob: 65cbffc68a3e4a11a44db35febc89f37e2af088b (plain)
1
2
3
4
#[no_mangle]
pub extern "C" fn foo(x: i32) -> i32 {
    return x.abs();
}