fn print(ctx: &mut Ctx, msg: WasmPtr<u8, Array>, length: u32) -> i32 {
    match msg.get_utf8_string(ctx.memory(0), length) {
        Some(msg) => {
            print!("{}", msg);
            0
        },
        None => -1,
    }
}
/// Print the provided message to the screen.
///
/// Returns `-1` if the operation failed.
Print the provided message to the screen.
Returns `-1` if the operation failed.
Print the provided message to the screen . Returns ` - 1 ` if the operation failed .
fn print(ctx: &mut Ctx, msg: WasmPtr<u8, Array>, length: u32) -> i32 {
    match msg.get_utf8_string(ctx.memory(0), length) {
        Some(msg) => {
            print!("{}", msg);
            0
        },
        None => -1,
    }
}
fn print ( ctx : & mut Ctx , msg : WasmPtr < u8 , Array > , length : u32 ) -> i32 { match msg . get_utf8_string ( ctx . memory ( 0 ) , length ) { Some ( msg ) => { print ! ( " " msg ) ; 0 } , None => - 1 , } }
Print the provided message to the screen.
Print the provided message to the screen .
ctx
&mut Ctx
msg
WasmPtr<u8, Array>
length
u32
ctx
&mut Ctx
msg
WasmPtr<u8, Array>
length
u32