Skip to main content

push_cstr

Function push_cstr 

Source
pub fn push_cstr(ctx: &Ctx, regs: &mut Regs, bytes: &[u8]) -> Result<u64, i32>
Expand description

Writes bytes plus a NUL onto the tracee’s stack and returns the address.

§Arguments

  • ctx - Shared supervisor state.
  • regs - Registers to allocate the stack slot from.
  • bytes - String contents, without NUL.