Skip to main content

xila_env_entry

Function xila_env_entry 

Source
pub unsafe extern "C" fn xila_env_entry(
    process: *const Process,
    index: usize,
    buffer: *mut c_char,
    capacity: usize,
    entry_length: *mut usize,
) -> Status
Expand description

Copy the zero-based environment entry as NAME=VALUE without a terminator. Output follows the same rules as xila_env_get. NotFound marks the end. Indices can change when the environment is mutated.

ยงSafety

Process must be a live capability, the buffer writable for its capacity and the length output aligned and writable.