[][src]Macro sciter::s2un

macro_rules! s2un {
    ($s:expr) => { ... };
}

Rust string to UTF-8 conversion. See also utf::u2s.

Example:

This example is not tested
let (cstr, len) = s2un!("hello"); // ffi::CString
libc::printf("%.*hs", len, cstr.as_ptr());