Sign in
cobalt
/
cobalt
/
07081467c3d00b04a6a1162e0566a5a8b9cfe2d5
/
.
/
third_party
/
musl
/
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
;
}