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
guard against compilers failing to handle setjmp specially by default
[musl.git]
/
src
/
time
/
ctime.c
blob
36029315128f250a86264447ee20a95bd7f366b7
1
#include <time.h>
2
3
char
*
ctime
(
const time_t
*
t
)
4
{
5
struct
tm
*
tm
=
localtime
(
t
);
6
if
(!
tm
)
return
0
;
7
return
asctime
(
tm
);
8
}