[PATCH 23/24] strxfrm.3: SYNOPSIS: Use 'restrict' in prototypes

Alejandro Colomar
2021-03-10T18:33:09Z

Both POSIX and glibc use 'restrict' in strxfrm().
Let's use it here too.

.../glibc$ grep_glibc_prototype strxfrm
string/string.h:150:
extern size_t strxfrm (char *__restrict __dest,
const char *__restrict __src, size_t __n)
__THROW __nonnull ((2)) __attr_access ((__write_only__, 1, 3));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
man3/strxfrm.3 | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man3/strxfrm.3 b/man3/strxfrm.3
index a6e0e4515..276497450 100644
--- a/man3/strxfrm.3
+++ b/man3/strxfrm.3
@@ -34,7 +34,8 @@ strxfrm \- string transformation
.nf
.B #include <string.h>
.PP
-.BI "size_t strxfrm(char *" dest ", const char *" src ", size_t " n );
+.BI "size_t strxfrm(char *restrict " dest ", const char *restrict " src ,
+.BI " size_t " n );
.fi
.SH DESCRIPTION
The
--
2.30.1.721.g45526154a5