diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 15:58:39 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 15:58:39 -0500 |
| commit | 178bc0e627d6fa3be9d18d40ba8828604ce71134 (patch) | |
| tree | e96dcbaa6500450c6c7b0d2ac43d043060ab2346 /src/time/ctime_s.c | |
| parent | bafccb2f57ac1a1852be2d6aafe33cf02d1630c1 (diff) | |
update standards and safety checks
Diffstat (limited to 'src/time/ctime_s.c')
| -rw-r--r-- | src/time/ctime_s.c | 12 |
1 files changed, 5 insertions, 7 deletions
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 <time.h> +#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 |
