blob: f54bb474ef5744a8c8466bb28b8a93068c1089bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <time.h>
#include "_safety.h"
/** convert arithmetic time to string **/
errno_t ctime_s(char *s, rsize_t maxsize, const time_t *timer)
{
SIGNAL_SAFE(0);
(void)s; (void)maxsize;
asctime(localtime(timer));
return 0;
}
CHECK_3(errno_t, 0, ctime_s, char *, rsize_t, const time_t *)
/***
The fn(ctime) converts the time at arg(timer) to a string in the same format as
fn(asctime).
***/
/* UNSPECIFIED: - */
/* UNDEFINED: - */
/* IMPLEMENTATION: - */
/* LOCALE: - */
/* RETURN: a pointer to the string */
/*
CEXT1(201112)
*/
|