blob: b787bbc29ef62023eb130aa1dcd438ad66f94dc8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <time.h>
char *ctime_r(const time_t *t, char *buf)
{
struct tm tm, *tm_p = localtime_r(t, &tm);
return tm_p ? asctime_r(tm_p, buf) : 0;
}
#ifdef TEST
int
main(void) {
return 0;
}
#endif
|