Function mupdf_sys::fz_strlcpy

source ·
pub unsafe extern "C" fn fz_strlcpy(
    dst: *mut c_char,
    src: *const c_char,
    n: usize
) -> usize
Expand description

Copy at most n-1 chars of a string into a destination buffer with null termination, returning the real length of the initial string (excluding terminator).

dst: Destination buffer, at least n bytes long.

src: C string (non-NULL).

n: Size of dst buffer in bytes.

Returns the length (excluding terminator) of src.