mirror of https://github.com/mkerrisk/man-pages
strftime.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in strftime(). Let's use it here too. .../glibc$ grep_glibc_prototype strftime timezone/private.h:506: size_t strftime(char *restrict, size_t, char const *restrict, struct tm const *restrict); time/time.h:88: extern size_t strftime (char *__restrict __s, size_t __maxsize, const char *__restrict __format, const struct tm *__restrict __tp) __THROW; .../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
4732985d0a
commit
f8e178d48b
|
@ -41,8 +41,9 @@ strftime \- format date and time
|
||||||
.nf
|
.nf
|
||||||
.B #include <time.h>
|
.B #include <time.h>
|
||||||
.PP
|
.PP
|
||||||
.BI "size_t strftime(char *" s ", size_t " max ", const char *" format ,
|
.BI "size_t strftime(char *restrict " s ", size_t " max ,
|
||||||
.BI " const struct tm *" tm );
|
.BI " const char *restrict " format ,
|
||||||
|
.BI " const struct tm *restrict " tm );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The
|
The
|
||||||
|
|
Loading…
Reference in New Issue