wcrtomb.3: SYNOPSIS: Use 'restrict' in prototypes

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>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-03-11 23:33:19 +01:00 committed by Michael Kerrisk
parent a216fe2af0
commit ce17c7a7e6
1 changed files with 2 additions and 1 deletions

View File

@ -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