Function wasmer_wasix::syscalls::wasi::environ_get::environ_get

source ·
pub fn environ_get<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    environ: WasmPtr<WasmPtr<u8, M>, M>,
    environ_buf: WasmPtr<u8, M>,
) -> Result<Errno, WasiError>
Expand description

§environ_get()

Read environment variable data. The sizes of the buffers should match that returned by environ_sizes_get(). Inputs:

  • char **environ A pointer to a buffer to write the environment variable pointers.
  • char *environ_buf A pointer to a buffer to write the environment variable string data.