[PATCH 09/24] stpcpy.3: SYNOPSIS: Use 'restrict' in prototypes
Alejandro Colomar
alx.manpages@gmail.com
Wed Mar 10 18:31:35 GMT 2021
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>
---
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 <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
--
2.30.1.721.g45526154a5
More information about the Libc-alpha
mailing list