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