From: Alejandro Colomar Date: Tue, 21 Nov 2023 15:21:55 +0000 (+0100) Subject: strncat.3: Rename third parameter to ssize X-Git-Tag: man-pages-6.06~127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfa4c15e270f96e08609fff2e913dce34eb3d248;p=thirdparty%2Fman-pages.git strncat.3: Rename third parameter to ssize This better clarifies that the size is of src. Signed-off-by: Alejandro Colomar --- diff --git a/man3/strncat.3 b/man3/strncat.3 index 2f17e2b77d..fb272ca4ce 100644 --- a/man3/strncat.3 +++ b/man3/strncat.3 @@ -13,8 +13,8 @@ Standard C library .nf .B #include .P -.BI "char *strncat(char *restrict " dst ", const char " src "[restrict ." sz ], -.BI " size_t " sz ); +.BI "char *strncat(char *restrict " dst ", const char " src "[restrict ." ssize ], +.BI " size_t " ssize ); .fi .SH DESCRIPTION This function appends the input character sequence @@ -23,19 +23,19 @@ into a string at the buffer pointed to by .IR dst . The programmer is responsible for allocating a destination buffer large enough, that is, -.IR "strlen(dst) + strnlen(src, sz) + 1" . +.IR "strlen(dst) + strnlen(src, ssize) + 1" . .P An implementation of this function might be: .P .in +4n .EX char * -strncat(char *restrict dst, const char *restrict src, size_t sz) +strncat(char *restrict dst, const char *restrict src, size_t ssize) { char *p; size_t len; \& - len = strnlen(src, sz); + len = strnlen(src, ssize); p = dst + strlen(dst); p = mempcpy(p, src, len); *p = \[aq]\e0\[aq];