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:
Alejandro Colomar 2021-03-11 23:33:17 +01:00 committed by Michael Kerrisk
parent 586c5b22e8
commit 12ba9d41a2
1 changed files with 2 additions and 1 deletions

View File

@ -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