mirror of https://github.com/mkerrisk/man-pages
mbtowc.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in mbtowc(). Let's use it here too. .../glibc$ grep_glibc_prototype mbtowc stdlib/stdlib.h:925: extern int mbtowc (wchar_t *__restrict __pwc, const char *__restrict __s, size_t __n) __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
0634d31b54
commit
855b2aeb8c
|
@ -20,7 +20,8 @@ mbtowc \- convert a multibyte sequence to a wide character
|
||||||
.nf
|
.nf
|
||||||
.B #include <stdlib.h>
|
.B #include <stdlib.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "int mbtowc(wchar_t *" pwc ", const char *" s ", size_t " n );
|
.BI "int mbtowc(wchar_t *restrict " pwc ", const char *restrict " s \
|
||||||
|
", size_t " n );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The main case for this function is when
|
The main case for this function is when
|
||||||
|
|
Loading…
Reference in New Issue