wcstoimax.3: SYNOPSIS: Use 'restrict' in prototypes

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>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-03-11 23:33:26 +01:00 committed by Michael Kerrisk
parent 6b3c959f92
commit 55eb26ae3d
1 changed files with 4 additions and 4 deletions

View File

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