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>
This commit is contained in:
Alejandro Colomar 2021-03-10 19:31:35 +01:00 committed by Michael Kerrisk
parent 0d93c9e70b
commit f23eb1ffb4
1 changed files with 1 additions and 1 deletions

View File

@ -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