| Crates.io | c-main |
| lib.rs | c-main |
| version | 1.0.1 |
| created_at | 2023-03-14 14:10:28.838205+00 |
| updated_at | 2023-03-14 14:22:12.909364+00 |
| description | C main style entry point |
| homepage | |
| repository | https://github.com/DoumanAsh/c-main |
| max_upload_size | |
| id | 809891 |
| size | 7,435 |
Utility crate providing c-main style arguments by using C main function.
#![no_main]
#[no_mangle]
pub fn rust_main(args: c_main::Args) -> isize {
for arg in args.into_iter().skip(1) {
println!("arg={:?}", arg);
}
0
}