You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn convert(data:String)->*const i8
{
let ptr:*const u8=data.as_ptr();
let ptr:*const i8=ptr as *const i8;
//let _s=unsafe{*ptr};
ptr
}
inputstring :"JL/G1A-630/45_A"
outputstring:"JL/G1A-630/45_A8���T"
use data.as_ptr() as *const i8, got JL/G1A-630/45_A�We5���,
each time different
I wonder know why?