asctime.c 206 B

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