patch_seq_env_get_string

Function patch_seq_env_get_string 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_env_get_string( env_data: *const Value, env_len: usize, index: i32, ) -> SeqString
Expand description

Get a String value from the environment at the given index

§Safety

  • env_data must be a valid pointer to an array of Values
  • env_len must be the actual length of that array
  • index must be within bounds
  • The value at index must be a String

This function returns a SeqString by-value. This is safe for FFI because it’s only called from LLVM-generated code, not actual C code.