mirror of https://github.com/mkerrisk/man-pages
wcstok.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in wcstok(). Let's use it here too. .../glibc$ grep_glibc_prototype wcstok wcsmbs/wchar.h:217: extern wchar_t *wcstok (wchar_t *__restrict __s, const wchar_t *__restrict __delim, wchar_t **__restrict __ptr) __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
55eb26ae3d
commit
21a4b17edd
|
@ -20,8 +20,9 @@ wcstok \- split wide-character string into tokens
|
|||
.nf
|
||||
.B #include <wchar.h>
|
||||
.PP
|
||||
.BI "wchar_t *wcstok(wchar_t *" wcs ", const wchar_t *" delim \
|
||||
", wchar_t **" ptr );
|
||||
.BI "wchar_t *wcstok(wchar_t *restrict " wcs \
|
||||
", const wchar_t *restrict " delim ,
|
||||
.BI " wchar_t **restrict " ptr );
|
||||
.fi
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
|
|
Loading…
Reference in New Issue