diff mbox series

[13/17] wcstoimax.3: SYNOPSIS: Use 'restrict' in prototypes

Message ID 20210311223330.722437-14-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 wcstoimax(), wcstoumax().
Let's use it here too.

.../glibc$ grep_glibc_prototype wcstoimax
stdlib/inttypes.h:305:
extern intmax_t wcstoimax (const __gwchar_t *__restrict __nptr,
			   __gwchar_t **__restrict __endptr, int __base)
     __THROW;
.../glibc$ grep_glibc_prototype wcstoumax
stdlib/inttypes.h:310:
extern uintmax_t wcstoumax (const __gwchar_t *__restrict __nptr,
			    __gwchar_t ** __restrict __endptr, int __base)
     __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
 man3/wcstoimax.3 | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/man3/wcstoimax.3 b/man3/wcstoimax.3
index fad1f5e36..001897b2b 100644
--- a/man3/wcstoimax.3
+++ b/man3/wcstoimax.3
@@ -29,10 +29,10 @@  wcstoimax, wcstoumax \- convert wide-character string to integer
 .B #include <stddef.h>
 .B #include <inttypes.h>
 .PP
-.BI "intmax_t wcstoimax(const wchar_t *" nptr ", wchar_t **" endptr \
-", int " base );
-.BI "uintmax_t wcstoumax(const wchar_t *" nptr ", wchar_t **" endptr \
-", int " base );
+.BI "intmax_t wcstoimax(const wchar_t *restrict " nptr ,
+.BI "                   wchar_t **restrict " endptr ", int " base );
+.BI "uintmax_t wcstoumax(const wchar_t *restrict " nptr ,
+.BI "                   wchar_t **restrict " endptr ", int " base );
 .fi
 .SH DESCRIPTION
 These functions are just like