mirror of https://github.com/mkerrisk/man-pages
stpncpy.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in stpncpy(). Let's use it here too. .../glibc$ grep_glibc_prototype stpncpy string/string.h:483: extern char *stpncpy (char *__restrict __dest, const char *__restrict __src, size_t __n) __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
f23eb1ffb4
commit
36addc2d59
|
@ -18,7 +18,8 @@ stpncpy \- copy a fixed-size string, returning a pointer to its end
|
|||
.nf
|
||||
.B #include <string.h>
|
||||
.PP
|
||||
.BI "char *stpncpy(char *" dest ", const char *" src ", size_t " n );
|
||||
.BI "char *stpncpy(char *restrict " dest ", const char *restrict " src \
|
||||
", size_t " n );
|
||||
.fi
|
||||
.PP
|
||||
.RS -4
|
||||
|
|
Loading…
Reference in New Issue