mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-25 03:50:29 +00:00
parent
446a1f7c5a
commit
06f9a5b627
34 changed files with 115 additions and 51 deletions
|
@ -69,7 +69,7 @@
|
|||
static char buf_asctime[MAX_ASCTIME_BUF_SIZE];
|
||||
|
||||
char *
|
||||
asctime_r(register const struct tm *timeptr, char *buf)
|
||||
asctime_r(register const struct tm *timeptr, char buf[hasatleast 26])
|
||||
{
|
||||
register const char * wn;
|
||||
register const char * mn;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "libc/time/struct/tm.h"
|
||||
#include "libc/time/time.h"
|
||||
|
||||
char *ctime_r(const time_t *timep, char *buf) {
|
||||
char *ctime_r(const time_t *timep, char buf[hasatleast 26]) {
|
||||
struct tm mytm;
|
||||
struct tm *tmp = localtime_r(timep, &mytm);
|
||||
return tmp ? asctime_r(tmp, buf) : NULL;
|
||||
|
|
|
@ -18,7 +18,7 @@ struct tm {
|
|||
};
|
||||
|
||||
char *asctime(const struct tm *);
|
||||
char *asctime_r(const struct tm *, char[hasatleast 64]);
|
||||
char *asctime_r(const struct tm *, char[hasatleast 26]);
|
||||
char *iso8601(char[hasatleast 20], struct tm *);
|
||||
char *strptime(const char *, const char *, struct tm *);
|
||||
int64_t mktime(struct tm *);
|
||||
|
|
|
@ -18,7 +18,7 @@ extern long timezone;
|
|||
extern int daylight;
|
||||
|
||||
char *ctime(const int64_t *);
|
||||
char *ctime_r(const int64_t *, char[hasatleast 64]);
|
||||
char *ctime_r(const int64_t *, char[hasatleast 26]);
|
||||
double difftime(int64_t, int64_t) dontthrow pureconst;
|
||||
extern long double (*nowl)(void);
|
||||
int64_t clock(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue