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