summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-11-21 16:55:58 +0100
committerAlejandro Colomar <alx@kernel.org>2023-11-21 19:30:48 +0100
commit9f3c55b0d31c063082f0887f7032b0302a252951 (patch)
tree8e485b362a2b2c0f1739d1965e2f3ba4fe061298
parent3f8d7b04cdf46ee00e62f0c5bf67fc3227a3eb12 (diff)
strncat.3: Reword description
While rewording, use "byte" instead of "character". This function is also used with multi-byte characters, so character can be confusing. Suggested-by: Paul Eggert <eggert@cs.ucla.edu> Cowritten-by: Paul Eggert <eggert@cs.ucla.edu> Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/strncat.313
1 files changed, 9 insertions, 4 deletions
diff --git a/man3/strncat.3 b/man3/strncat.3
index 54e0d7bb3..b9514cc0e 100644
--- a/man3/strncat.3
+++ b/man3/strncat.3
@@ -5,7 +5,10 @@
.\"
.TH strncat 3 (date) "Linux man-pages (unreleased)"
.SH NAME
-strncat \- append a null-padded character sequence into a string
+strncat
+\-
+append non-null bytes from a source array to a string,
+and null-terminate the result
.SH LIBRARY
Standard C library
.RI ( libc ", " \-lc )
@@ -17,9 +20,11 @@ Standard C library
.BI " size_t " ssize );
.fi
.SH DESCRIPTION
-This function appends the input character sequence
-contained in a null-padded fixed-size buffer,
-into a string at the buffer pointed to by
+This function appends at most
+.I ssize
+non-null bytes from the array pointed to by
+.I src
+to the end of the string pointed to by
.IR dst .
.I dst
must point to a string contained in a buffer that is large enough,