summaryrefslogtreecommitdiff
path: root/src/time/ctime_s.c
blob: a8b8e7f3975e5da95eaa28777c31519e32f38976 (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
#include <time.h>

/** convert arithmetic time to string **/
errno_t ctime_s(char *s, rsize_t maxsize, const time_t *timer)
{
	__C_EXT(1, 201112L);
	return asctime(localtime(timer));
}

/***
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)
*/