asctime.c 215 B

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