mirror of https://github.com/mkerrisk/man-pages
mbsrtowcs.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in mbsrtowcs(). Let's use it here too. .../glibc$ grep_glibc_prototype mbsrtowcs wcsmbs/wchar.h:337: extern size_t mbsrtowcs (wchar_t *__restrict __dst, const char **__restrict __src, size_t __len, 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:
parent
68802a1ec5
commit
b4a5b81892
|
@ -20,8 +20,8 @@ mbsrtowcs \- convert a multibyte string to a wide-character string
|
|||
.nf
|
||||
.B #include <wchar.h>
|
||||
.PP
|
||||
.BI "size_t mbsrtowcs(wchar_t *" dest ", const char **" src ,
|
||||
.BI " size_t " len ", mbstate_t *" ps );
|
||||
.BI "size_t mbsrtowcs(wchar_t *restrict " dest ", const char **restrict " src ,
|
||||
.BI " size_t " len ", mbstate_t *restrict " ps );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
If
|
||||
|
|
Loading…
Reference in New Issue