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

.../glibc$ grep_glibc_prototype mbrlen
wcsmbs/wchar.h:307:
extern size_t mbrlen (const char *__restrict __s, size_t __n,
		      mbstate_t *__restrict __ps) __THROW;
.../glibc$

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

diff --git a/man3/mbrlen.3 b/man3/mbrlen.3
index 8ef088724..9167eeae5 100644
--- a/man3/mbrlen.3
+++ b/man3/mbrlen.3
@@ -20,7 +20,8 @@ mbrlen \- determine number of bytes in next multibyte character
 .nf
 .B #include <wchar.h>
 .PP
-.BI "size_t mbrlen(const char *" s ", size_t " n ", mbstate_t *" ps );
+.BI "size_t mbrlen(const char *restrict " s ", size_t " n ,
+.BI "              mbstate_t *restrict " ps );
 .fi
 .SH DESCRIPTION
 The
-- 
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