Macro sciter::s2u
[−]
[src]
macro_rules! s2u { ($s:expr) => { ... }; }
Rust string to UTF-8 conversion. See also utf::u2s
.
Example:
let (cstr, len) = s2u!("hello"); // ffi::CString
libc::printf("%.*hs", len, cstr.as_ptr());