summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/time/ctime.c
blob: 36029315128f250a86264447ee20a95bd7f366b7 (plain)
1
2
3
4
5
6
7
8
#include <time.h>

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