Lines Matching refs:cstr
15 /// use rustix::cstr;
18 /// let metadata = statat(cwd(), cstr!("test.txt"), AtFlags::empty())?;
26 macro_rules! cstr {
38 "cstr argument contains embedded NUL bytes",
60 assert_eq!(cstr!(""), &*CString::new("").unwrap());
61 assert_eq!(cstr!("").to_owned(), CString::new("").unwrap());
62 assert_eq!(cstr!("hello"), &*CString::new("hello").unwrap());
63 assert_eq!(cstr!("hello").to_owned(), CString::new("hello").unwrap());
69 let _ = cstr!("hello\0world");
75 let _ = cstr!("\0");