mirror of https://github.com/mkerrisk/man-pages
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:
parent
0d93c9e70b
commit
f23eb1ffb4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue