From f23eb1ffb4a1adc32fbbddc65dd568df8dd8cb3e Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 10 Mar 2021 19:31:35 +0100 Subject: [PATCH] stpcpy.3: SYNOPSIS: Use 'restrict' in prototypes Both POSIX and glibc use 'restrict' in stpcpy(). Let's use it here too. .../glibc$ grep_glibc_prototype stpcpy string/string.h:475: extern char *stpcpy (char *__restrict __dest, const char *__restrict __src) __THROW __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man3/stpcpy.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/stpcpy.3 b/man3/stpcpy.3 index 448b53955..e978dfb3e 100644 --- a/man3/stpcpy.3 +++ b/man3/stpcpy.3 @@ -29,7 +29,7 @@ stpcpy \- copy a string returning a pointer to its end .nf .B #include .PP -.BI "char *stpcpy(char *" dest ", const char *" src ); +.BI "char *stpcpy(char *restrict " dest ", const char *restrict " src ); .fi .PP .RS -4