repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
if_iwm - Factor out firmware station handling into if_iwm_sta.c.
[dragonfly.git]
/
contrib
/
ldns
/
compat
/
ctime_r.c
blob
4ffd8b7e352f1d6f988d42a81983795eb3ae2b22
1
#ifdef HAVE_CONFIG_H
2
#include <ldns/config.h>
3
#endif
4
5
#ifdef HAVE_TIME_H
6
#include <time.h>
7
#endif
8
9
char
*
ctime_r
(
const time_t
*
timep
,
char
*
buf
)
10
{
11
/* no thread safety. */
12
char
*
result
=
ctime
(
timep
);
13
if
(
buf
&&
result
)
14
strcpy
(
buf
,
result
);
15
return
result
;
16
}