mirror of https://github.com/mkerrisk/man-pages
wcpcpy.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in wcpcpy(). Let's use it here too. .../glibc$ grep_glibc_prototype wcpcpy wcsmbs/wchar.h:551: extern wchar_t *wcpcpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src) __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
586c5b22e8
commit
12ba9d41a2
|
@ -19,7 +19,8 @@ wcpcpy \- copy a wide-character string, returning a pointer to its end
|
|||
.nf
|
||||
.B #include <wchar.h>
|
||||
.PP
|
||||
.BI "wchar_t *wcpcpy(wchar_t *" dest ", const wchar_t *" src );
|
||||
.BI "wchar_t *wcpcpy(wchar_t *restrict " dest \
|
||||
", const wchar_t *restrict " src );
|
||||
.fi
|
||||
.PP
|
||||
.RS -4
|
||||
|
|
Loading…
Reference in New Issue