mirror of https://github.com/mkerrisk/man-pages
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:
parent
746d60af80
commit
2d91ea534d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue