summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-04-20 18:54:13 +0200
committerAlejandro Colomar <alx@kernel.org>2023-04-20 18:55:07 +0200
commit04e686326f03a28c187e00821e234b2ecd0fab5b (patch)
tree6b1fade687bdb332452fad3649a91273fa8e4958
parentb79f558263b14dae76a44bc71b0902208557e0d5 (diff)
regex.3: SYNOPSIS: Add _Nullable qualifier to regerror()'s errbuf
Passing NULL there means that the function returns the size needed for a copy without actually copying (possibly useful before allocating a buffer large enough). Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/regex.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/regex.3 b/man3/regex.3
index 2f6ee816f..bedb97e87 100644
--- a/man3/regex.3
+++ b/man3/regex.3
@@ -26,8 +26,8 @@ Standard C library
.BI " int " eflags );
.PP
.BI "size_t regerror(int " errcode ", const regex_t *_Nullable restrict " preg ,
-.BI " char " errbuf "[restrict ." errbuf_size "], \
-size_t " errbuf_size );
+.BI " char " errbuf "[_Nullable restrict ." errbuf_size ],
+.BI " size_t " errbuf_size );
.BI "void regfree(regex_t *" preg );
.fi
.SH DESCRIPTION