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

#include <time.h>

extern void __asctime();

char *
asctime_r(timeptr, buf)
__const struct tm * timeptr;
char * buf;
{

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