diff mbox series

[04/17] wcpcpy.3: SYNOPSIS: Use 'restrict' in prototypes

Message ID 20210311223330.722437-5-alx.manpages@gmail.com
State New
Headers show
Series man3: SYNOPSIS: Use 'restrict' in prototypes | expand

Commit Message

Alejandro Colomar March 11, 2021, 10:33 p.m. UTC
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>
---
 man3/wcpcpy.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/man3/wcpcpy.3 b/man3/wcpcpy.3
index 9c30da2d9..5ef063e05 100644
--- a/man3/wcpcpy.3
+++ b/man3/wcpcpy.3
@@ -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