string.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:42 +01:00 committed by Michael Kerrisk
parent 9180299e51
commit b0ef498bd8
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ Return a pointer to the last occurrence of the character
in the string in the string
.IR s . .IR s .
.TP .TP
.BI "char *strsep(char **" stringp ", const char *" delim ); .BI "char *strsep(char **restrict " stringp ", const char *restrict " delim );
Extract the initial token in Extract the initial token in
.I stringp .I stringp
that is delimited by one of the bytes in that is delimited by one of the bytes in