pub fn copy_to_user_string(token: usize, src: &str, dst: *mut u8)
Expand description

Automatically add '\0' in the end, so total written length is src.len() + 1 (with trailing '\0').

Warning

Caller should ensure src is not too large, or this function will write out of bound.