[PATCH 16/17] wmemcpy.3: SYNOPSIS: Use 'restrict' in prototypes
Alejandro Colomar
alx.manpages@gmail.com
Thu Mar 11 22:33:29 GMT 2021
Both POSIX and glibc use 'restrict' in wmemcpy().
Let's use it here too.
.../glibc$ grep_glibc_prototype wmemcpy
wcsmbs/wchar.h:262:
extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
const wchar_t *__restrict __s2, size_t __n) __THROW;
.../glibc$
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
man3/wmemcpy.3 | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/man3/wmemcpy.3 b/man3/wmemcpy.3
index 692754d71..343af42a9 100644
--- a/man3/wmemcpy.3
+++ b/man3/wmemcpy.3
@@ -20,7 +20,9 @@ wmemcpy \- copy an array of wide-characters
.nf
.B #include <wchar.h>
.PP
-.BI "wchar_t *wmemcpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
+.BI "wchar_t *wmemcpy(wchar_t *restrict " dest \
+", const wchar_t *restrict " src ,
+.BI " size_t " n );
.fi
.SH DESCRIPTION
The
--
2.30.1
More information about the Libc-alpha
mailing list