Function ffizz_string::fz_string_borrow
source · #[no_mangle]
pub unsafe extern "C" fn fz_string_borrow(
cstr: *const c_char
) -> fz_string_tExpand description
Create a new fz_string_t containing a pointer to the given C string.
Safety
The C string must remain valid and unchanged until after the fz_string_t is freed. It’s typically easiest to ensure this by using a static string.
fz_string_t fz_string_borrow(const char *);