mirror of https://github.com/mkerrisk/man-pages
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:
parent
6b3c959f92
commit
55eb26ae3d
|
@ -29,10 +29,10 @@ wcstoimax, wcstoumax \- convert wide-character string to integer
|
||||||
.B #include <stddef.h>
|
.B #include <stddef.h>
|
||||||
.B #include <inttypes.h>
|
.B #include <inttypes.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "intmax_t wcstoimax(const wchar_t *" nptr ", wchar_t **" endptr \
|
.BI "intmax_t wcstoimax(const wchar_t *restrict " nptr ,
|
||||||
", int " base );
|
.BI " wchar_t **restrict " endptr ", int " base );
|
||||||
.BI "uintmax_t wcstoumax(const wchar_t *" nptr ", wchar_t **" endptr \
|
.BI "uintmax_t wcstoumax(const wchar_t *restrict " nptr ,
|
||||||
", int " base );
|
.BI " wchar_t **restrict " endptr ", int " base );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
These functions are just like
|
These functions are just like
|
||||||
|
|
Loading…
Reference in New Issue