mirror of https://github.com/mkerrisk/man-pages
getdate.3: SYNOPSIS: Use 'restrict' in prototypes
glibc uses 'restrict' in getdate_r(). Let's use it here too. .../glibc$ grep_glibc_prototype getdate_r time/time.h:297: extern int getdate_r (const char *__restrict __string, struct tm *__restrict __resbufp); .../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
79201b695e
commit
5e0058dce8
|
@ -40,7 +40,7 @@ getdate, getdate_r \- convert a date-plus-time string to broken-down time
|
|||
.PP
|
||||
.B "#include <time.h>"
|
||||
.PP
|
||||
.BI "int getdate_r(const char *" string ", struct tm *" res );
|
||||
.BI "int getdate_r(const char *restrict " string ", struct tm *restrict " res );
|
||||
.fi
|
||||
.PP
|
||||
.RS -4
|
||||
|
|
Loading…
Reference in New Issue