#include char *ctime_r(const time_t *t, char *buf) { struct tm tm, *tm_p; return (tm_p = localtime_r(t, &tm)) ? asctime_r(tm_p, buf) : 0; }