mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-02 17:28:30 +00:00
parent
446a1f7c5a
commit
06f9a5b627
34 changed files with 115 additions and 51 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue