aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/time/ctime_r.c
blob: 63aee389086fd23fafa04f8d51000ee2501ac504 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*
 * ctime_r.c
 */

#include <time.h>

char *
ctime_r (const time_t * tim_p,
        char * result)

{
  struct tm tm;
  return asctime_r (localtime_r (tim_p, &tm), result);
}