summaryrefslogtreecommitdiff
path: root/libc/time/asctime.c
blob: ea13bf8e9c7301f16a7d72da50aaf0282784db28 (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;
}