wcscpy.3: SYNOPSIS: Use 'restrict' in prototypes

Both POSIX and glibc use 'restrict' in wcscpy().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcscpy
wcsmbs/wchar.h:87:
extern wchar_t *wcscpy (wchar_t *__restrict __dest,
			const wchar_t *__restrict __src)
     __THROW __nonnull ((1, 2));
.../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:21 +01:00 committed by Michael Kerrisk
parent 454eddea7a
commit a6a3fd6675
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,8 @@ wcscpy \- copy a wide-character string
.nf
.B #include <wchar.h>
.PP
.BI "wchar_t *wcscpy(wchar_t *" dest ", const wchar_t *" src );
.BI "wchar_t *wcscpy(wchar_t *restrict " dest \
", const wchar_t *restrict " src );
.fi
.SH DESCRIPTION
The