summaryrefslogtreecommitdiff
path: root/src/time/ctime_r.c
blob: d2260a165a2e88112f0c74e5f2d13628af09e2ff (plain) (blame)
1
2
3
4
5
6
7
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);
}