diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-03-11 23:33:21 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-03-14 21:55:58 +0100 |
| commit | a6a3fd6675bc69b9c506ac45ea922dc924bb306a (patch) | |
| tree | 50ade0c6b242d4c34d7345634e9a9182027c2619 /man3/wcscpy.3 | |
| parent | 454eddea7a5189fe242fb0999b36ca474d5d88b5 (diff) | |
| download | man-pages-a6a3fd6675bc69b9c506ac45ea922dc924bb306a.tar.gz | |
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>
Diffstat (limited to 'man3/wcscpy.3')
| -rw-r--r-- | man3/wcscpy.3 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/man3/wcscpy.3 b/man3/wcscpy.3 index 8fa4a4e8bb..c96711fdf5 100644 --- a/man3/wcscpy.3 +++ b/man3/wcscpy.3 @@ -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 |
