Function ffizz_string::fz_string_borrow
source · pub unsafe 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.
The resulting fz_string_t must be freed.
fz_string_t fz_string_borrow(const char *);