1 /* $File: localtime_r.c,v 1.2 2015/07/11 14:41:37 christos Exp $ */
5 FILE_RCSID("@(#)$File: localtime_r.c,v 1.2 2015/07/11 14:41:37 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));