diff mbox series

[06/17] wcrtomb.3: SYNOPSIS: Use 'restrict' in prototypes

Message ID 20210311223330.722437-7-alx.manpages@gmail.com
State New
Headers show
Series man3: SYNOPSIS: Use 'restrict' in prototypes | expand

Commit Message

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

.../glibc$ grep_glibc_prototype wcrtomb
wcsmbs/wchar.h:301:
extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
		       mbstate_t *__restrict __ps) __THROW;
.../glibc$

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

Patch

diff --git a/man3/wcrtomb.3 b/man3/wcrtomb.3
index c63daab8e..475486db1 100644
--- a/man3/wcrtomb.3
+++ b/man3/wcrtomb.3
@@ -20,7 +20,8 @@  wcrtomb \- convert a wide character to a multibyte sequence
 .nf
 .B #include <wchar.h>
 .PP
-.BI "size_t wcrtomb(char *" s ", wchar_t " wc ", mbstate_t *" ps );
+.BI "size_t wcrtomb(char *restrict " s ", wchar_t " wc \
+", mbstate_t *restrict " ps );
 .fi
 .SH DESCRIPTION
 The main case for this function is when