Matlab, Rust.
do_something_to_string(input_str); let c_string = CString::new(output).expect("Could not convert output to CString"); let box_pointer = Box::into_raw(Box::new(c_string.into_raw())); box_pointer } Let’s break down what’s happening here, because there’s a lot going on. The input comes in as pointer