Function multivers_runner::main

source ·
#[no_mangle]
pub unsafe extern "C" fn main(
    argc: i32,
    argv: *const *const i8,
    envp: *const *const i8
)
Expand description

Function called at program startup.

When main is executed, it uncompresses and executes the version that matches the CPU features of the host.

§Example

#![no_main]

pub use multivers_runner::main;

§Safety

  • argc must never be negative.
  • argv and envp must be null-terminated arrays of valid pointers to null-terminated strings.
  • Each element of argv and envp must be valid for reads of bytes up to and including the null terminator.