fn read_string(ptr: *mut c_void) -> String {
    use std::ffi::CStr;

    String::from_utf8_lossy(
        unsafe { CStr::from_ptr(ptr as *mut c_char).to_bytes() }
    ).into_owned()
}
// Read a string from the `ptr` buffer
Read a string from the `ptr` buffer
Read a string from the ` ptr ` buffer
fn read_string(ptr: *mut c_void) -> String {
    use std::ffi::CStr;
    String::from_utf8_lossy(
        unsafe { CStr::from_ptr(ptr as *mut c_char).to_bytes() }
    ).into_owned()
}
fn read_string ( ptr : * mut c_void ) -> String { use std :: ffi :: CStr ; String :: from_utf8_lossy ( unsafe { CStr :: from_ptr ( ptr as * mut c_char ) . to_bytes ( ) } ) . into_owned ( ) }
Read a string from the `ptr` buffer
Read a string from the ` ptr ` buffer
ptr
*mut c_void
ptr
*mut c_void