ctime_r.c 157 B

12345678910
  1. #include <time.h>
  2. #include <sys/time.h>
  3. char * ctime_r(const time_t *t, char *buf)
  4. {
  5. struct tm tm;
  6. return asctime_r(localtime_r(t, &tm), buf);
  7. }