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/strftime.c | |
| parent | bafccb2f57ac1a1852be2d6aafe33cf02d1630c1 (diff) | |
update standards and safety checks
Diffstat (limited to 'src/time/strftime.c')
| -rw-r--r-- | src/time/strftime.c | 8 |
1 files changed, 2 insertions, 6 deletions
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 <locale.h> #include <stdio.h> #include <time.h> -#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 |
