mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
16 lines
231 B
Rust
16 lines
231 B
Rust
|
|
#[c_function("print_int")]
|
|
fn print_int(value) {}
|
|
|
|
// #[c_function("println")]
|
|
// fn println(value) {}
|
|
|
|
fn main() {
|
|
// println("hello\ world");
|
|
let a = 4;
|
|
print_int(a + 2);
|
|
}
|
|
|
|
// vim: syntax=rust commentstring=//\ %s
|
|
|