diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-03-11 23:33:28 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-03-14 21:55:58 +0100 |
| commit | 7ce7d2ad9b7960367e9ca52ef34c08b516f8fe87 (patch) | |
| tree | 307f8b7195db33bf330c1eff3240382c67fb1aa0 /man3 | |
| parent | 21a4b17edd15badf2b5794c01a5c0fdfef1bdd32 (diff) | |
| download | man-pages-7ce7d2ad9b7960367e9ca52ef34c08b516f8fe87.tar.gz | |
wcstombs.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in wcstombs().
Let's use it here too.
.../glibc$ grep_glibc_prototype wcstombs
stdlib/stdlib.h:937:
extern size_t wcstombs (char *__restrict __s,
const wchar_t *__restrict __pwcs, size_t __n)
__THROW
__attr_access ((__write_only__, 1, 3)) __attr_access ((__read_only__, 2));
.../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/wcstombs.3 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/man3/wcstombs.3 b/man3/wcstombs.3 index 21f2c82745..a42c25ebcf 100644 --- a/man3/wcstombs.3 +++ b/man3/wcstombs.3 @@ -20,7 +20,8 @@ wcstombs \- convert a wide-character string to a multibyte string .nf .B #include <stdlib.h> .PP -.BI "size_t wcstombs(char *" dest ", const wchar_t *" src ", size_t " n ); +.BI "size_t wcstombs(char *restrict " dest ", const wchar_t *restrict " src , +.BI " size_t " n ); .fi .SH DESCRIPTION If |
