aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-03-11 23:33:23 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-03-14 21:55:58 +0100
commit815c456a483f93d07a1e98a6e2d1a34287ea6e4d (patch)
treed598a3f9e984f634a1abdd08f09d199912d3c408
parentdac1e36026861de9732434d344eed86ad3761182 (diff)
downloadman-pages-815c456a483f93d07a1e98a6e2d1a34287ea6e4d.tar.gz
wcsncpy.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in wcsncpy(). Let's use it here too. .../glibc$ grep_glibc_prototype wcsncpy wcsmbs/wchar.h:92: extern wchar_t *wcsncpy (wchar_t *__restrict __dest, const wchar_t *__restrict __src, size_t __n) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man3/wcsncpy.34
1 files changed, 3 insertions, 1 deletions
diff --git a/man3/wcsncpy.3 b/man3/wcsncpy.3
index d5a02b8a69..b90908fe73 100644
--- a/man3/wcsncpy.3
+++ b/man3/wcsncpy.3
@@ -20,7 +20,9 @@ wcsncpy \- copy a fixed-size string of wide characters
.nf
.B #include <wchar.h>
.PP
-.BI "wchar_t *wcsncpy(wchar_t *" dest ", const wchar_t *" src ", size_t " n );
+.BI "wchar_t *wcsncpy(wchar_t *restrict " dest \
+", const wchar_t *restrict " src ,
+.BI " size_t " n );
.fi
.SH DESCRIPTION
The