I know there are some examples of using LuaJIT FFI to create pointers, but most of them do not point to existing data. One example is:
How to pass a pointer to LuaJIT ffi to be used as out argume
Tag: FFI
How to convert a C string into a RUST string and return via FFI?
I am trying to get the C string returned by the C library and convert it to a Rust string through FFI.
mylib.c
const char* hello(){
return “Hello World!”;
} main.rs
#![feature(li