diff mbox series

[10/22] mbrlen.3: SYNOPSIS: Use 'restrict' in prototypes

Message ID 20210305235105.177359-11-alx.manpages@gmail.com
State New
Headers show
Series man3: SYNOPSIS: Use 'restrict' in prototypes (batch 3) | expand

Commit Message

Alejandro Colomar March 5, 2021, 11:50 p.m. UTC
Both POSIX and glibc use 'restrict' in mbrlen().
Let's use it here too.

.../glibc$ grep_glibc_prototype mbrlen
wcsmbs/wchar.h:307:
extern size_t mbrlen (const char *__restrict __s, size_t __n,
		      mbstate_t *__restrict __ps) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/mbrlen.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/man3/mbrlen.3 b/man3/mbrlen.3
index 8ef088724..9167eeae5 100644
--- a/man3/mbrlen.3
+++ b/man3/mbrlen.3
@@ -20,7 +20,8 @@  mbrlen \- determine number of bytes in next multibyte character
 .nf
 .B #include <wchar.h>
 .PP
-.BI "size_t mbrlen(const char *" s ", size_t " n ", mbstate_t *" ps );
+.BI "size_t mbrlen(const char *restrict " s ", size_t " n ,
+.BI "              mbstate_t *restrict " ps );
 .fi
 .SH DESCRIPTION
 The