1 2 3 4 5 6 7
#include "time_impl.h" struct tm *localtime(const time_t *t) { static struct tm tm; return __localtime_r(t, &tm); }