4 int main(int argc
, char **argv
) {
10 printf("time: %d\n", (int)now
);
13 printf("ctime: %s", pbuf
);
14 pbuf
= ctime_r(&now
, &buf
[0]);
15 printf("ctime_r: %s", buf
);
17 mk
= mktime(gmtime(&now
));
18 printf("gmtime: %d\n", (int)mk
);
19 mk
= mktime(gmtime_r(&now
, &tm
));
20 printf("gmtime_r: %d\n", (int)mk
);
22 mk
= mktime(localtime(&now
));
23 printf("localtime: %d\n", (int)mk
);
24 mk
= mktime(localtime_r(&now
, &tm
));
25 printf("localtime_r: %d\n", (int)mk
);
28 printf("asctime: %s", pbuf
);
29 pbuf
= asctime_r(&tm
, &buf
[0]);
30 printf("asctime_r: %s", buf
);