mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-11-21 12:41:39 +00:00
Document thread-safe functions in man pages.
* NEWS, newctime.3, newstrftime.3, newtzset.3, time2posix.3: Mention localtime_r etc. Also, use function prototypes rather than K&R style, and use 'restrict' where POSIX does.
This commit is contained in:
@ -44,14 +44,10 @@ strftime \- format date and time
|
||||
.nf
|
||||
.ie \n(.g .ds - \f(CW-\fP
|
||||
.el ds - \-
|
||||
.B #include <sys/types.h>
|
||||
.B #include <time.h>
|
||||
.PP
|
||||
.B size_t strftime(buf, maxsize, format, timeptr)
|
||||
.B char *buf;
|
||||
.B size_t maxsize;
|
||||
.B const char *format;
|
||||
.B const struct tm *timeptr
|
||||
.B "size_t strftime(char *restrict buf, size_t maxsize,"
|
||||
.B " char const *restrict format, struct tm const *restrict timeptr);"
|
||||
.PP
|
||||
.B cc ... \-ltz
|
||||
.fi
|
||||
|
||||
Reference in New Issue
Block a user