memccpy.3: SYNOPSIS: Use 'restrict' in prototypes

POSIX specifies that the parameters of memccpy()
shall be 'restrict'.  Glibc uses 'restrict' too.
Let's use it here too.

......

.../glibc$ grep_glibc_prototype memccpy
string/string.h:54:
extern void *memccpy (void *__restrict __dest, const void *__restrict __src,
		      int __c, size_t __n)
    __THROW __nonnull ((1, 2)) __attr_access ((__write_only__, 1, 4));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-02-24 15:42:54 +01:00 committed by Michael Kerrisk
parent 23bdd87451
commit 98a1e7336e
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ memccpy \- copy memory area
.nf
.B #include <string.h>
.PP
.BI "void *memccpy(void *" dest ", const void *" src ", int " c ", size_t " n );
.BI "void *memccpy(void *restrict " dest ", const void *restrict " src ,
.BI " int " c ", size_t " n );
.fi
.SH DESCRIPTION
The