diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-03-11 23:33:24 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-03-14 21:55:58 +0100 |
| commit | c37f316d8eeaef089e7b29d6de85e90c94178cec (patch) | |
| tree | 2b1dc59cc19905c743e70eb45ab6d30b6492f945 /man3 | |
| parent | 815c456a483f93d07a1e98a6e2d1a34287ea6e4d (diff) | |
| download | man-pages-c37f316d8eeaef089e7b29d6de85e90c94178cec.tar.gz | |
wcsnrtombs.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in wcsnrtombs().
Let's use it here too.
.../glibc$ grep_glibc_prototype wcsnrtombs
wcsmbs/wchar.h:357:
extern size_t wcsnrtombs (char *__restrict __dst,
const wchar_t **__restrict __src,
size_t __nwc, size_t __len,
mbstate_t *__restrict __ps) __THROW;
.../glibc$
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
| -rw-r--r-- | man3/wcsnrtombs.3 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/man3/wcsnrtombs.3 b/man3/wcsnrtombs.3 index 7c9c210ad3..1fb5ae6268 100644 --- a/man3/wcsnrtombs.3 +++ b/man3/wcsnrtombs.3 @@ -19,8 +19,9 @@ wcsnrtombs \- convert a wide-character string to a multibyte string .nf .B #include <wchar.h> .PP -.BI "size_t wcsnrtombs(char *" dest ", const wchar_t **" src ", size_t " nwc , -.BI " size_t " len ", mbstate_t *" ps ); +.BI "size_t wcsnrtombs(char *restrict " dest ", const wchar_t **restrict " src , +.BI " size_t " nwc ", size_t " len \ +", mbstate_t *restrict " ps ); .fi .PP .RS -4 |
