[PATCH 15/22] mbtowc.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 mbtowc().
Let's use it here too.

.../glibc$ grep_glibc_prototype mbtowc
stdlib/stdlib.h:925:
extern int mbtowc (wchar_t *__restrict __pwc,
		   const char *__restrict __s, size_t __n) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 man3/mbtowc.3 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/mbtowc.3 b/man3/mbtowc.3
index d0af36831..80058a192 100644
--- a/man3/mbtowc.3
+++ b/man3/mbtowc.3
@@ -20,7 +20,8 @@ mbtowc \- convert a multibyte sequence to a wide character
 .nf
 .B #include <stdlib.h>
 .PP
-.BI "int mbtowc(wchar_t *" pwc ", const char *" s ", size_t " n );
+.BI "int mbtowc(wchar_t *restrict " pwc ", const char *restrict " s \
+", size_t " n );
 .fi
 .SH DESCRIPTION
 The main case for this function is when
-- 
2.30.1.721.g45526154a5




[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