pub unsafe extern "C" fn SCIPstrncpy(
t: *mut c_char,
s: *const c_char,
size: c_int,
) -> c_intExpand description
safe version of strncpy
Copies string in s to t using at most @a size-1 nonzero characters (strncpy copies size characters). It always adds a terminating zero char. Does not pad the remaining string with zero characters (unlike strncpy). Returns the number of copied nonzero characters, if the length of s is at most size - 1, and returns size otherwise. Thus, the original string was truncated if the return value is size.