[PATCH 08/17] wcscpy.3: SYNOPSIS: Use 'restrict' in prototypes
Alejandro Colomar
alx.manpages@gmail.com
Thu Mar 11 22:33:21 GMT 2021
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>
---
man3/wcscpy.3 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/man3/wcscpy.3 b/man3/wcscpy.3
index 8fa4a4e8b..c96711fdf 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
--
2.30.1
More information about the Libc-alpha
mailing list