summaryrefslogtreecommitdiff
path: root/libc/misc/time/ctime_r.c
blob: 1b323a258a4bad10e3a623b346f56f32b621caf9 (plain)
1
2
3
4
5
6
7
8
9
10

#include <time.h>
#include <sys/time.h>

char * ctime_r(const time_t *t, char *buf)
{
    struct tm tm;
    return asctime_r(localtime_r(t, &tm), buf);
}