wordexp.3: SYNOPSIS: Use 'restrict' in prototypes

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

.../glibc$ grep_glibc_prototype wordexp
posix/wordexp.h:62:
extern int wordexp (const char *__restrict __words,
		    wordexp_t *__restrict __pwordexp, int __flags);
.../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-11 23:33:30 +01:00 committed by Michael Kerrisk
parent ac6292052b
commit e9de308449
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ wordexp, wordfree \- perform word expansion like a posix-shell
.nf
.B "#include <wordexp.h>"
.PP
.BI "int wordexp(const char *" s ", wordexp_t *" p ", int " flags );
.BI "int wordexp(const char *restrict " s ", wordexp_t *restrict " p \
", int " flags );
.BI "void wordfree(wordexp_t *" p );
.fi
.PP