diff options
| author | Alejandro Colomar <alx@kernel.org> | 2025-11-24 18:23:46 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2025-11-24 18:25:13 +0100 |
| commit | e11a82a6f7098b94bcd00fb767a1db269e3a83db (patch) | |
| tree | 4be763497210fef1d26e449f013c8b5f12bb7596 | |
| parent | 466c43360f3874a890e910610d4d01ea135d020c (diff) | |
| download | man-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>
| -rw-r--r-- | man/man3/strcmp.3 | 3 | ||||
| -rw-r--r-- | man/man3/strnlen.3 | 3 | ||||
| -rw-r--r-- | man/man3/wcsncmp.3 | 3 | ||||
| -rw-r--r-- | man/man3/wcsnlen.3 | 3 |
4 files changed, 4 insertions, 8 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 diff --git a/man/man3/strnlen.3 b/man/man3/strnlen.3 index b966f578a6..f5866e1c06 100644 --- a/man/man3/strnlen.3 +++ b/man/man3/strnlen.3 @@ -13,8 +13,7 @@ Standard C library .nf .B #include <string.h> .P -.BR "size_t strnlen(" "size_t maxlen;" -.BI " const char " s [ maxlen "], size_t " maxlen ); +.BR "size_t strnlen(const char " s "[], size_t " maxlen ); .fi .P .RS -4 diff --git a/man/man3/wcsncmp.3 b/man/man3/wcsncmp.3 index 71e87621f0..2597e753c8 100644 --- a/man/man3/wcsncmp.3 +++ b/man/man3/wcsncmp.3 @@ -13,8 +13,7 @@ Standard C library .nf .B #include <wchar.h> .P -.BR "int wcsncmp(" "size_t n;" -.BI " const wchar_t " s1 [ n "], const wchar_t " s2 [ n "], size_t " n ); +.BR "int wcsncmp(const wchar_t " s1 "[], const wchar_t " s2 "[], size_t " n ); .fi .SH DESCRIPTION The diff --git a/man/man3/wcsnlen.3 b/man/man3/wcsnlen.3 index 8e5b1fe3a3..c25a40b213 100644 --- a/man/man3/wcsnlen.3 +++ b/man/man3/wcsnlen.3 @@ -13,8 +13,7 @@ Standard C library .nf .B #include <wchar.h> .P -.BR "size_t wcsnlen(" "size_t maxlen;" -.BI " const wchar_t " s [ maxlen "], size_t " maxlen ); +.BR "size_t wcsnlen(const wchar_t " s "[], size_t " maxlen ); .fi .P .RS -4 |
