mirror of https://github.com/mkerrisk/man-pages
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:
parent
a216fe2af0
commit
ce17c7a7e6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue