diff options
Diffstat (limited to '05/musl-0.6.0/src/time/ctime_r.c')
-rw-r--r-- | 05/musl-0.6.0/src/time/ctime_r.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/05/musl-0.6.0/src/time/ctime_r.c b/05/musl-0.6.0/src/time/ctime_r.c new file mode 100644 index 0000000..d2260a1 --- /dev/null +++ b/05/musl-0.6.0/src/time/ctime_r.c @@ -0,0 +1,8 @@ +#include <time.h> + +char *ctime_r(const time_t *t, char *buf) +{ + struct tm tm; + localtime_r(t, &tm); + return asctime_r(&tm, buf); +} |