POSIX specifies that the parameters of memcpy() shall be 'restrict'. Glibc uses 'restrict' too. Let's use it here too. It's especially important in memcpy(), as it's been a historical source of bugs. ...... .../glibc$ grep_glibc_prototype memcpy posix/regex_internal.h:746: { memcpy (dest, src, sizeof (bitset_t)); string/string.h:43: extern void *memcpy (void *__restrict __dest, const void *__restrict __src, size_t __n) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man3/memcpy.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man3/memcpy.3 b/man3/memcpy.3 index 523465ae8..369f9f9d0 100644 --- a/man3/memcpy.3 +++ b/man3/memcpy.3 @@ -35,7 +35,8 @@ memcpy \- copy memory area .nf .B #include <string.h> .PP -.BI "void *memcpy(void *" dest ", const void *" src ", size_t " n ); +.BI "void *memcpy(void *restrict " dest ", const void *restrict " src \ +", size_t " n ); .fi .SH DESCRIPTION The -- 2.30.1.721.g45526154a5