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:
Alejandro Colomar 2021-03-10 19:31:40 +01:00 committed by Michael Kerrisk
parent 4732985d0a
commit f8e178d48b
1 changed files with 3 additions and 2 deletions

View File

@ -41,8 +41,9 @@ strftime \- format date and time
.nf
.B #include <time.h>
.PP
.BI "size_t strftime(char *" s ", size_t " max ", const char *" format ,
.BI " const struct tm *" tm );
.BI "size_t strftime(char *restrict " s ", size_t " max ,
.BI " const char *restrict " format ,
.BI " const struct tm *restrict " tm );
.fi
.SH DESCRIPTION
The