Function gnunet_sys::GNUNET_strlcpy[][src]

pub unsafe extern "C" fn GNUNET_strlcpy(
    dst: *mut c_char,
    src: *const c_char,
    n: usize
) -> usize

Like strlcpy but portable. The given string @a src is copied in full length (until its null byte). The destination buffer is guaranteed to be null-terminated.

to a destination buffer and ensures that the destination string is null-terminated.

@param dst destination of the copy @param src source of the copy, must be null-terminated @param n the length of the string to copy, including its terminating null byte @return the length of the string that was copied, excluding the terminating null byte