asctime_r.c 190 B

123456789101112131415
  1. #include <time.h>
  2. extern void __asctime();
  3. char *asctime_r(timeptr, buf)
  4. __const struct tm *timeptr;
  5. char *buf;
  6. {
  7. if (timeptr == 0)
  8. return 0;
  9. __asctime(buf, timeptr);
  10. return buf;
  11. }