.TH strncat() "" "" "String Function (libc)"
.PC "Append one string onto another"
.B "#include <string.h>"
\fBchar *strncat(\fIstring1\^\fB, \fIstring2\^\fB, \fIn\^\fB)\fR
\fBchar *\fIstring1\^\fB, *\fIstring2\^\fB; unsigned \fIn\^\fB;\fR
.PP
.B strncat()
copies up to
.I n
characters from
.I string2
onto the end of
.IR string1 .
It stops when
.I n
characters have been copied or it encounters a null character in
.IR string2 ,
whichever occurs first, and returns the modified
.IR string1 .
.SH Example
For an example of this function, see the entry for \fBstrncpy\fR.
.SH "See Also"
.Xr "libc," libc
.Xr "strcat()," strcat
.Xr "string.h" string.h
.br
\*(AS, \(sc7.11.3.2
.br
\*(PX Standard, \(sc8.1
.SH Notes
.I string1
should point to enough space to hold itself and
.I n
characters of
.IR string2 .
If it does not, a portion of the program or operating system
may be overwritten.
