Debian Codegraph @

examples/writeln.rs

raw symbols SCIP
1 #![cfg_attr(nostartfiles, no_main)]
2 use libc_print::*;
3
4 #[cfg(all(nostartfiles))]
5 #[no_mangle]
6 pub extern "C" fn _start() -> ! {
7 libc_println!("Hello, {}!", "world");
8 unsafe {
9 libc::exit(0);
10 }
11 }
12
13 #[cfg(not(nostartfiles))]
14 fn main() {
15 libc_println!("Hello, {}!", "world");
16 }