Function tor_util::ffi::rust_str_get [] [src]

#[no_mangle]
pub unsafe extern fn rust_str_get(str: RustString) -> *const c_char

Lends an immutable, NUL-terminated C String.

Examples

rust_str_t r_s = rust_welcome_string();
const char *s = rust_str_get(r_s);
printf("%s", s);
rust_str_free(r_s);