- Add the C99 'restrict' qualifier using the '__restrict' macro to
function prototype and definition of strptime(3). - Update the manual page.
This commit is contained in:
parent
912dd12ad1
commit
d542f511a0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101886
@ -143,7 +143,8 @@ struct tm *localtime_r(const time_t *, struct tm *);
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __XSI_VISIBLE
|
#if __XSI_VISIBLE
|
||||||
char *strptime(const char *, const char *, struct tm *);
|
char *strptime(const char *__restrict, const char *__restrict,
|
||||||
|
struct tm *__restrict);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __BSD_VISIBLE
|
#if __BSD_VISIBLE
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In time.h
|
.In time.h
|
||||||
.Ft char *
|
.Ft char *
|
||||||
.Fn strptime "const char *buf" "const char *format" "struct tm *timeptr"
|
.Fn strptime "const char *restrict buf" "const char *restrict format" "struct tm *restrict timeptr"
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The
|
The
|
||||||
.Fn strptime
|
.Fn strptime
|
||||||
|
@ -517,7 +517,8 @@ _strptime(const char *buf, const char *fmt, struct tm *tm)
|
|||||||
|
|
||||||
|
|
||||||
char *
|
char *
|
||||||
strptime(const char *buf, const char *fmt, struct tm *tm)
|
strptime(const char *__restrict buf, const char *__restrict fmt,
|
||||||
|
struct tm *__restrict tm)
|
||||||
{
|
{
|
||||||
char *ret;
|
char *ret;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user