aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stpncpy.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/stpncpy.3')
-rw-r--r--man3/stpncpy.38
1 files changed, 4 insertions, 4 deletions
diff --git a/man3/stpncpy.3 b/man3/stpncpy.3
index ac475f8030..8b402423a1 100644
--- a/man3/stpncpy.3
+++ b/man3/stpncpy.3
@@ -9,7 +9,7 @@
.\" GNU glibc-2 source code and manual
.\"
.\" Corrected, aeb, 990824
-.TH STPNCPY 3 2011-09-27 "GNU" "Linux Programmer's Manual"
+.TH STPNCPY 3 2011-09-28 "GNU" "Linux Programmer's Manual"
.SH NAME
stpncpy \- copy a fixed-size string, returning a pointer to its end
.SH SYNOPSIS
@@ -41,16 +41,16 @@ _GNU_SOURCE
The
.BR stpncpy ()
function copies at most \fIn\fP characters from the string
-pointed to by \fIsrc\fP, including the terminating \(aq\\0\(aq character,
+pointed to by \fIsrc\fP, including the terminating null byte (\(aq\\0\(aq),
to the array pointed to by \fIdest\fP.
Exactly \fIn\fP characters are written at
\fIdest\fP.
If the length \fIstrlen(src)\fP is smaller than \fIn\fP, the
remaining characters in the array pointed to by \fIdest\fP are filled
-with \(aq\\0\(aq characters.
+with null bytes (\(aq\\0\(aq),
If the length \fIstrlen(src)\fP is greater or equal to
\fIn\fP, the string pointed to by \fIdest\fP will
-not be \(aq\\0\(aq terminated.
+not be null-terminated.
.PP
The strings may not overlap.
.PP