cairo_native_runtime

Function cairo_native__libfunc__debug__print

Source
#[no_mangle]
pub unsafe extern "C" fn cairo_native__libfunc__debug__print(
    target_fd: i32,
    data: *const [u8; 32],
    len: u32,
) -> i32
Expand description

Based on cairo-lang-runner’s implementation.

Source: https://github.com/starkware-libs/cairo/blob/main/crates/cairo-lang-runner/src/casm_run/mod.rs#L1946-L1948

§Safety

This function is intended to be called from MLIR, deals with pointers, and is therefore definitely unsafe to use manually.