Skip to main content

StrNCopy

Function StrNCopy 

Source
pub unsafe extern "C" fn StrNCopy(
    dest: *mut c_char,
    src: *const c_char,
    n: usize,
) -> *mut c_char
Expand description

Just like strncpy(), but terminates string by putting a null character at the end (may overwrite last character).