1 /* $File: localtime_r.c,v 1.1 2015/01/09 19:28:32 christos Exp $ */
5 FILE_RCSID("@(#)$File: localtime_r.c,v 1.1 2015/01/09 19:28:32 christos Exp $")
10 /* asctime_r is not thread-safe anyway */
12 localtime_r(const time_t t, struct tm *tm)
14 struct tm *tmp = localtime(t);
17 memcpy(tm, tmp, sizeof(*tm));