aboutsummaryrefslogtreecommitdiffstats
path: root/man3/stpcpy.3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-03-10 19:31:35 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-03-14 21:40:45 +0100
commitf23eb1ffb4a1adc32fbbddc65dd568df8dd8cb3e (patch)
tree2e6db16e476738624d3336474156808f05d900cb /man3/stpcpy.3
parent0d93c9e70b441252e453e76d0f679fc9ecdf173e (diff)
downloadman-pages-f23eb1ffb4a1adc32fbbddc65dd568df8dd8cb3e.tar.gz
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 <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3/stpcpy.3')
-rw-r--r--man3/stpcpy.32
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/stpcpy.3 b/man3/stpcpy.3
index 448b539559..e978dfb3e7 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 <string.h>
.PP
-.BI "char *stpcpy(char *" dest ", const char *" src );
+.BI "char *stpcpy(char *restrict " dest ", const char *restrict " src );
.fi
.PP
.RS -4