aboutsummaryrefslogtreecommitdiff
path: root/src/time/ctime.c
blob: 3f8d0bd238640f8841035242adb5e6573e567342 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <time.h>

char *ctime(const time_t *t)
{
	struct tm *tm = localtime(t);
	if (!tm) return 0;
	return asctime(tm);
}


#ifdef TEST
int
main(void) {
	return 0;
}
#endif