aboutsummaryrefslogtreecommitdiffstats
path: root/man/man3/memmem.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2025-03-14 18:33:41 +0100
committerAlejandro Colomar <alx@kernel.org>2025-03-14 18:55:19 +0100
commitd2c2db8830f8fcbb736bdea52b398257447bef6b (patch)
tree13a38ceaeaa6bc257994d91027d42ca187fd2c21 /man/man3/memmem.3
parent44930b7b8eacbfff12acd1dcfbb66dd818e35254 (diff)
downloadman-pages-d2c2db8830f8fcbb736bdea52b398257447bef6b.tar.gz
man/: SYNOPSIS: Use GNU forward-declarations of parameters for sizes of array parameters
This syntax has been proposed for standardization in N3433. Link: <https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3433.pdf> Cc: Christopher Bazley <chris.bazley.wg14@gmail.com> Cc: Martin Uecker <uecker@tugraz.at> Cc: Joseph Myers <josmyers@redhat.com> Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man3/memmem.3')
-rw-r--r--man/man3/memmem.313
1 files changed, 7 insertions, 6 deletions
diff --git a/man/man3/memmem.3 b/man/man3/memmem.3
index 74fc92eb96..f61cadfe55 100644
--- a/man/man3/memmem.3
+++ b/man/man3/memmem.3
@@ -19,8 +19,9 @@ Standard C library
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <string.h>
.P
-.BI "void *memmem(const void " haystack [. haystacklen "], size_t " haystacklen ,
-.BI " const void " needle [. needlelen "], size_t " needlelen );
+.BI "void *memmem(size_t " hsize ", size_t " nsize ;
+.BI " const void " haystack [ hsize "], size_t " hsize ,
+.BI " const void " needle [ nsize "], size_t " nsize );
.fi
.SH DESCRIPTION
The
@@ -28,13 +29,13 @@ The
function finds the start of the first occurrence
of the substring
.I needle
-of length
-.I needlelen
+of size
+.I nsize
in the memory
area
.I haystack
-of length
-.IR haystacklen .
+of size
+.IR hsize .
.SH RETURN VALUE
The
.BR memmem ()