Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
time
/
ctime_r.c
blob: 3e24aa681beea2263d5350ba6c8f7473c09fe89e [
file
] [
log
] [
blame
]
#include
<time.h>
char
*
ctime_r
(
const
time_t
*
t
,
char
*
buf
)
{
struct
tm tm
,
*
tm_p
=
localtime_r
(
t
,
&
tm
);
return
tm_p
?
asctime_r
(
tm_p
,
buf
)
:
0
;
}