Skip to main content

init_from_auxv

Function init_from_auxv 

Source
pub unsafe fn init_from_auxv(auxv: *const c_void)
Available on ((32-bit and ARM, or 32-bit and little-endian and x86, or 64-bit and AArch64, or 64-bit and little-endian and x86-64) and (Android or Linux), or Linux and (32-bit and big-endian and PowerPC, or 32-bit and little-endian and RISC-V RV32, or 32-bit and little-endian and x86-64, or 32-bit and MIPS, or 64-bit and big-endian and s390x, or 64-bit and little-endian and LoongArch64, or 64-bit and little-endian and RISC-V RV64, or 64-bit and MIPS-64, or 64-bit and PowerPC64)) and (crate features bare) only.
Expand description

Initialize library from auxv pointer. It’s recommended to call it before anything else in the main function.

§Safety

Dealing with pointers is unsafe by definition.