summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-12-04 19:06:58 +0100
committerAlejandro Colomar <alx@kernel.org>2023-12-04 19:06:58 +0100
commit45d734ef52673a39017461fd069a97ae18b8d382 (patch)
tree15bd062bb37ed1cd755d892098be18a98a59ecbc
parent2d77337a843f863a4408c2d7254bd9492d2fdccf (diff)
string_copying.7: Don't say 'size' when 'len' is meant
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man7/string_copying.712
1 files changed, 6 insertions, 6 deletions
diff --git a/man7/string_copying.7 b/man7/string_copying.7
index e0a80dd60..e26dcfe2c 100644
--- a/man7/string_copying.7
+++ b/man7/string_copying.7
@@ -66,12 +66,12 @@ const char *restrict " src ,
.SS Known-length character sequences
.nf
// Chain-copy a known-length character sequence.
-.BI "void *mempcpy(void " dst "[restrict ." size "], \
-const void " src "[restrict ." size ],
-.BI " size_t " size );
+.BI "void *mempcpy(void " dst "[restrict ." len "], \
+const void " src "[restrict ." len ],
+.BI " size_t " len );
.P
// Chain-copy a known-length character sequence into a string.
-.I stpcpy(mempcpy(dst, src, ssize), \[dq]\[dq]);
+.I stpcpy(mempcpy(dst, src, len), \[dq]\[dq]);
.fi
.SH DESCRIPTION
.\" ----- DESCRIPTION :: Terms (and abbreviations) :: -----------------/
@@ -288,7 +288,7 @@ To copy a known-length character sequence, use
.BR mempcpy (3).
.P
To copy a known-length character sequence into a string, use
-.IR "\%stpcpy(mempcpy(dst,\ src,\ ssize),\ \[dq]\[dq])" .
+.IR "\%stpcpy(mempcpy(dst,\ src,\ len),\ \[dq]\[dq])" .
.P
A string is also accepted as input,
because these functions ask for the length,
@@ -683,7 +683,7 @@ fwrite(buf, 1, len, stdout);
.EE
.\" ----- EXAMPLES :: stpcpy(mempcpy(), "") ---------------------------/
.TP
-.I stpcpy(mempcpy(dst, src, ssize), \[dq]\[dq])
+.I stpcpy(mempcpy(dst, src, len), \[dq]\[dq])
.EX
p = buf;
p = mempcpy(p, "Hello ", 6);