Skip to main content

strncpy

Function strncpy 

Source
pub fn strncpy<'s>(s1: &'s mut [i8], s2: &[i8], n: usize) -> &'s mut [i8]
Expand description

Copies at most n bytes from s2 into s1, padding with null bytes when needed.