asctime_r.c 198 B

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