summaryrefslogtreecommitdiff
path: root/src/inttypes/strtoumax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/inttypes/strtoumax.c')
-rw-r--r--src/inttypes/strtoumax.c10
1 files changed, 5 insertions, 5 deletions
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 <stddef.h>
#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
+#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