mirror of https://github.com/mkerrisk/man-pages
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:
parent
23bdd87451
commit
98a1e7336e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue