[][src]Function avr_libc::strlcpy_PF

pub unsafe extern "C" fn strlcpy_PF(
    dst: *mut i8,
    src: uint_farptr_t,
    siz: size_t
) -> size_t

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

Copy src to string dst of size siz. At most siz-1 characters will be copied. Always NULL terminates (unless siz == 0).

\returns The strlcpy_PF() function returns strlen(src). If retval >= siz, truncation occurred. The contents of RAMPZ SFR are undefined when the function returns.