.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" This code is derived from software contributed to Berkeley by
.\" %sccs.include.redist.man%
.\" @(#)strcpy.3 5.3 (Berkeley) %G%
.Fn strcpy "char *dst" "const char *src"
.Fn strncpy "char *dst" "const char *src" "size_t len"
(including the terminating
.Bd -literal -offset indent
(void)strncpy(chararray, "abc", 6).
.Bd -literal -offset indent
(void)strncpy(chararray, "abcdefgh", 6);