strncpy Declarationchar * strncpy(char *dst, const char *src, size_t n); See AlsoCopystrlcpybcopySTRDUP