aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stpncpy.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/stpncpy.3')
-rw-r--r--man3/stpncpy.37
1 files changed, 5 insertions, 2 deletions
diff --git a/man3/stpncpy.3 b/man3/stpncpy.3
index 47cb76490b..1ebe669a97 100644
--- a/man3/stpncpy.3
+++ b/man3/stpncpy.3
@@ -21,7 +21,9 @@ stpncpy \- copy a fixed-size string, returning a pointer to its end
.BI "char *stpncpy(char *" dest ", const char *" src ", size_t " n );
.fi
.SH DESCRIPTION
-The \fBstpncpy\fP() function copies at most \fIn\fP characters from the string
+The
+.BR stpncpy ()
+function copies at most \fIn\fP characters from the string
pointed to by \fIsrc\fP, including the terminating '\\0' character, to the
array pointed to by \fIdest\fP.
Exactly \fIn\fP characters are written at
@@ -37,7 +39,8 @@ The strings may not overlap.
The programmer must ensure that there is room for at least \fIn\fP characters
at \fIdest\fP.
.SH "RETURN VALUE"
-\fBstpncpy\fP() returns a pointer to the terminating null
+.BR stpncpy ()
+returns a pointer to the terminating null
in \fIdest\fP, or, if \fIdest\fP is not null-terminated,
\fIdest + n\fP.
.SH "CONFORMING TO"