☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
ctor
/
examples
/
ctor-basic.rs
☽
☼
debian/rust-vendor/ctor/examples/ctor-basic.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
1
//! Matches the `ctor` README introduction (`cargo run --example ctor-basic`).
2
use ctor::ctor;
3
use libc_print::*;
4
5
#[ctor(unsafe)]
6
fn foo() {
7
libc_println!("Life before main!");
8
}
9
10
fn main() {
11
libc_println!("main");
12
}