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

Both POSIX and glibc use 'restrict' in mbrtowc().
Let's use it here too.

.../glibc$ grep_glibc_prototype mbrtowc
wcsmbs/wchar.h:296:
extern size_t mbrtowc (wchar_t *__restrict __pwc,
		       const char *__restrict __s, size_t __n,
		       mbstate_t *__restrict __p) __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-06 00:50:55 +01:00 committed by Michael Kerrisk
parent 95bc7a7667
commit b0d2d2e0e3
1 changed files with 3 additions and 2 deletions

View File

@ -21,8 +21,9 @@ mbrtowc \- convert a multibyte sequence to a wide character
.nf
.B #include <wchar.h>
.PP
.BI "size_t mbrtowc(wchar_t *" pwc ", const char *" s ", size_t " n \
", mbstate_t *" ps );
.BI "size_t mbrtowc(wchar_t *restrict " pwc ", const char *restrict " s \
", size_t " n ,
.BI " mbstate_t *restrict " ps );
.fi
.SH DESCRIPTION
The main case for this function is when