aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stpcpy.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/stpcpy.3')
-rw-r--r--man3/stpcpy.311
1 files changed, 8 insertions, 3 deletions
diff --git a/man3/stpcpy.3 b/man3/stpcpy.3
index 51cfedbf43..472d3b4faf 100644
--- a/man3/stpcpy.3
+++ b/man3/stpcpy.3
@@ -34,17 +34,22 @@ stpcpy \- copy a string returning a pointer to its end
.BI "char *stpcpy(char *" dest ", const char *" src );
.fi
.SH DESCRIPTION
-The \fBstpcpy\fP() function copies the string pointed to by \fIsrc\fP
+The
+.BR stpcpy ()
+function copies the string pointed to by \fIsrc\fP
(including the terminating `\\0' character) to the array pointed to by
\fIdest\fP.
The strings may not overlap, and the destination string
\fIdest\fP must be large enough to receive the copy.
.SH "RETURN VALUE"
-\fBstpcpy\fP() returns a pointer to the \fBend\fP of the string
+.BR stpcpy ()
+returns a pointer to the \fBend\fP of the string
\fIdest\fP (that is, the address of the terminating null byte)
rather than the beginning.
.SH EXAMPLE
-For example, this program uses \fBstpcpy\fP() to concatenate \fBfoo\fP and
+For example, this program uses
+.BR stpcpy ()
+to concatenate \fBfoo\fP and
\fBbar\fP to produce \fBfoobar\fP, which it then prints.
.nf