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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 man3/wcpcpy.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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
-- 
2.30.1




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux