summaryrefslogtreecommitdiff
path: root/libc/misc/time/asctime_r.c
blob: 823ab4f4d940ed560a6145a6bc87ce5a5ab3efe7 (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;
}