SHARE
TWEET

Untitled

a guest Sep 17th, 2019 94 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use std::{ffi::CString, path::Path};
  2. fn main() {
  3.     let path = Path::new("foo");
  4.     let cstr = CString::new(path.as_bytes());
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top