[−][src]Function mmal_sys::vcos_safe_strcpy
pub unsafe extern "C" fn vcos_safe_strcpy(
dst: *mut c_char,
src: *const c_char,
dstlen: usize,
offset: usize
) -> usize
Copies string src to dst at the specified offset. Output is truncated to fit in dstlen bytes, i.e. the string is at most (buflen - 1) characters long. Unlike strncpy, exactly one NUL is written to dst, which is always NUL-terminated. Returns the string length before/without truncation.