diff options
Diffstat (limited to 'src/time/ctime_s.c')
-rw-r--r-- | src/time/ctime_s.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/time/ctime_s.c b/src/time/ctime_s.c new file mode 100644 index 00000000..8813247c --- /dev/null +++ b/src/time/ctime_s.c @@ -0,0 +1,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) +*/ |