[][src]Function avr_libc::strncpy

pub unsafe extern "C" fn strncpy(
    arg1: *mut i8,
    arg2: *const i8,
    arg3: size_t
) -> *mut i8

\ingroup avr_string \fn char *strncpy(char *dest, const char *src, size_t len) \brief Copy a string.

The strncpy() function is similar to strcpy(), except that not more than n bytes of src are copied. Thus, if there is no null byte among the first n bytes of src, the result will not be null-terminated.

In the case where the length of src is less than that of n, the remainder of dest will be padded with nulls.

\returns The strncpy() function returns a pointer to the destination string dest.