repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
riscv32: add dlsym
[musl.git]
/
src
/
time
/
ctime_r.c
blob
3e24aa681beea2263d5350ba6c8f7473c09fe89e
1
#include <time.h>
2
3
char
*
ctime_r
(
const time_t
*
t
,
char
*
buf
)
4
{
5
struct
tm tm
, *
tm_p
=
localtime_r
(
t
, &
tm
);
6
return
tm_p
?
asctime_r
(
tm_p
,
buf
) :
0
;
7
}