summaryrefslogtreecommitdiff
path: root/libc/misc/time/asctime.c
blob: 08673cbccceaf03f9d1290ab3d15ace431ae8123 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include <time.h>

extern void __asctime();

char *
asctime(timeptr)
__const struct tm * timeptr;
{
   static char timebuf[26];

   if( timeptr == 0 ) return 0;
   __asctime(timebuf, timeptr);
   return timebuf;
}