From 178bc0e627d6fa3be9d18d40ba8828604ce71134 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 15:58:39 -0500 Subject: update standards and safety checks --- src/time/ctime_s.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/time/ctime_s.c') diff --git a/src/time/ctime_s.c b/src/time/ctime_s.c index c86ba1ce..aff8a533 100644 --- a/src/time/ctime_s.c +++ b/src/time/ctime_s.c @@ -1,12 +1,13 @@ -#if 0 - #include +#include "_safety.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)); + SIGNAL_SAFE(0); + (void)s; (void)maxsize; + asctime(localtime(timer)); + return 0; } /*** @@ -24,6 +25,3 @@ fn(asctime). /* CEXT1(201112) */ - - -#endif -- cgit v1.2.1