From 608008917d26e7b2f6d0e1041ab981c853fe9733 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 13:15:59 -0500 Subject: update standards and safety checks --- src/inttypes/strtoumax.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/inttypes/strtoumax.c') diff --git a/src/inttypes/strtoumax.c b/src/inttypes/strtoumax.c index 25dca76c..28fce88b 100644 --- a/src/inttypes/strtoumax.c +++ b/src/inttypes/strtoumax.c @@ -1,12 +1,15 @@ -#if 0 - #include #include #include #include +#include "_safety.h" + +#undef strtoumax uintmax_t strtoumax(const char *restrict nptr, char ** restrict endptr, int base) { + SIGNAL_SAFE(0); + uintmax_t ret = 0; uintmax_t max = UINTMAX_MAX; uintmax_t min = 0; @@ -19,6 +22,3 @@ uintmax_t strtoumax(const char *restrict nptr, char ** restrict endptr, int base /* STDC(199901) */ - - -#endif -- cgit v1.2.1