summaryrefslogtreecommitdiff
path: root/libc/time/asctime.c
blob: b66cd37a6e21c14a78b76f3a762956bf585eeaec (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)
struct tm * timeptr;
{
static char timebuf[26];

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