aboutsummaryrefslogtreecommitdiffstats
path: root/man/man3/strcmp.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2025-11-24 18:23:46 +0100
committerAlejandro Colomar <alx@kernel.org>2025-11-24 18:25:13 +0100
commite11a82a6f7098b94bcd00fb767a1db269e3a83db (patch)
tree4be763497210fef1d26e449f013c8b5f12bb7596 /man/man3/strcmp.3
parent466c43360f3874a890e910610d4d01ea135d020c (diff)
downloadman-pages-e11a82a6f7098b94bcd00fb767a1db269e3a83db.tar.gz
man/man3/: {str,wcs}n{cmp,len}(3): Remove array parameter length expressions
The arguments to these APIs may be shorter than that, as long as they are null terminated strings. Reported-by: Florian Weimer <fweimer@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/strcmp.3')
-rw-r--r--man/man3/strcmp.33
1 files changed, 1 insertions, 2 deletions
diff --git a/man/man3/strcmp.3 b/man/man3/strcmp.3
index e2b83e448d..dd14296cbe 100644
--- a/man/man3/strcmp.3
+++ b/man/man3/strcmp.3
@@ -14,8 +14,7 @@ Standard C library
.B #include <string.h>
.P
.BI "int strcmp(const char *" s1 ", const char *" s2 );
-.BR "int strncmp(" "size_t n;"
-.BI " const char " s1 [ n "], const char " s2 [ n "], size_t " n );
+.BR "int strncmp(const char " s1 "[], const char " s2 "[], size_t " n );
.fi
.SH DESCRIPTION
The