OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial revision
[uclinux-h8/uClibc.git]
/
libc
/
misc
/
time
/
ctime_r.c
1
2
#include <time.h>
3
4
extern void __tm_conv();
5
extern void __asctime();
6
7
char *
8
ctime_r(timep, buf)
9
__const time_t * timep;
10
char * buf;
11
{
12
struct tm tmb;
13
struct timezone tz;
14
time_t offt;
15
16
gettimeofday((void*)0, &tz);
17
18
offt = -tz.tz_minuteswest*60L;
19
20
/* tmb.tm_isdst = ? */
21
__tm_conv(&tmb, timep, offt);
22
23
__asctime(buf, &tmb);
24
25
return buf;
26
}