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

glibc uses 'restrict' in strsep().
Let's use it here too.

.../glibc$ grep_glibc_prototype strsep
string/string.h:455:
extern char *strsep (char **__restrict __stringp,
		     const char *__restrict __delim)
     __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:44 +01:00 committed by Michael Kerrisk
parent 746d60af80
commit 2d91ea534d
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ strsep \- extract token from string
.nf
.B #include <string.h>
.PP
.BI "char *strsep(char **" stringp ", const char *" delim );
.BI "char *strsep(char **restrict " stringp ", const char *restrict " delim );
.fi
.PP
.RS -4