1#include <time.h>23#undef asctime45char *6asctime(const struct tm *tm)7{8 static char buf[26];910 /*11 * buf has space for a text like "Sun Sep 16 01:03:52 1973\n\0"12 * and for this reason strftime cannot fail as the buffer is13 * long enough14 */15 strftime(buf, sizeof(buf), "%c\n", tm);16 return buf;17}