[][src]Function avr_libc::strlcpy_P

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

\ingroup avr_pgmspace \fn size_t strlcpy_P(char *dst, const char *src, size_t siz) \brief Copy a string from progmem to RAM.

Copy \p src to string \p dst of size \p siz. At most \p siz-1 characters will be copied. Always NULL terminates (unless \p siz == 0). The strlcpy_P() function is similar to strlcpy() except that the \p src is pointer to a string in memory space.

\returns The strlcpy_P() function returns strlen(src). If retval >= siz, truncation occurred.