mirror of https://github.com/mkerrisk/man-pages
wmemcpy.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in wmemcpy(). Let's use it here too. .../glibc$ grep_glibc_prototype wmemcpy wcsmbs/wchar.h:262: extern wchar_t *wmemcpy (wchar_t *__restrict __s1, const wchar_t *__restrict __s2, 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
7ce7d2ad9b
commit
ac6292052b
|
@ -20,7 +20,9 @@ wmemcpy \- copy an array of wide-characters
|
||||||
.nf
|
.nf
|
||||||
.B #include <wchar.h>
|
.B #include <wchar.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "wchar_t *wmemcpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
|
.BI "wchar_t *wmemcpy(wchar_t *restrict " dest \
|
||||||
|
", const wchar_t *restrict " src ,
|
||||||
|
.BI " size_t " n );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
|
|
Loading…
Reference in New Issue