From 45d734ef52673a39017461fd069a97ae18b8d382 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 4 Dec 2023 19:06:58 +0100 Subject: string_copying.7: Don't say 'size' when 'len' is meant Signed-off-by: Alejandro Colomar --- man7/string_copying.7 | 12 ++++++------ 1 file 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); -- cgit v1.2.3