c-main

Crates.ioc-main
lib.rsc-main
version1.0.1
sourcesrc
created_at2023-03-14 14:10:28.838205
updated_at2023-03-14 14:22:12.909364
descriptionC main style entry point
homepage
repositoryhttps://github.com/DoumanAsh/c-main
max_upload_size
id809891
size7,435
Douman (DoumanAsh)

documentation

README

c-main

Rust Crates.io Documentation

Utility crate providing c-main style arguments by using C main function.

Usage

#![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
}
Commit count: 2

cargo fmt