guard against compilers failing to handle setjmp specially by default
[musl.git] / src / time / ctime.c
blob36029315128f250a86264447ee20a95bd7f366b7
1 #include <time.h>
3 char *ctime(const time_t *t)
5 struct tm *tm = localtime(t);
6 if (!tm) return 0;
7 return asctime(tm);