shithub: scc

ref: c809e59d972aead305d59b23e4d1d156c1ebd2a6
dir: /src/libc/time/asctime.c/

View raw version
#include <time.h>
#undef asctime

#include <stdio.h> // TODO: remove me!
char *
asctime(const struct tm *tm)
{
	static char buf[30];

	strftime(buf, sizeof(buf), "%c\n", tm);
	return buf;
}