strlcpy Declarationsize_t strlcpy(char *dst, const char *src, size_t n); See AlsoCopystrncpybcopySTRDUP