1 2 3 4 5 6 7
#include <time.h> char *asctime(const struct tm *tm) { static char buf[26]; return __asctime_r(tm, buf); }