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/strftime.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/time/strftime.c') diff --git a/src/time/strftime.c b/src/time/strftime.c index 4c6630dc..949ae79b 100644 --- a/src/time/strftime.c +++ b/src/time/strftime.c @@ -1,9 +1,7 @@ -#if 0 - #include #include #include -#include "_assert.h" +#include "_safety.h" #include "locale/_locale.h" /** convert time to a formatted string **/ @@ -14,6 +12,7 @@ size_t strftime(char * restrict s, size_t maxsize, const char * restrict format, char buf[64]; struct __locale_t *lc = __get_locale(); + SIGNAL_SAFE(0); ASSERT_NONNULL(s); ASSERT_NONNULL(format); ASSERT_NONNULL(timeptr); @@ -193,6 +192,3 @@ RETURN_FAILURE(ZERO) RETURN_SUCCESS(the length of the converted string, not counting the terminating null) STDC(1) */ - - -#endif -- cgit v1.2.1