summaryrefslogtreecommitdiff
path: root/src/inttypes/wcstoimax.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 13:15:59 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 13:15:59 -0500
commit608008917d26e7b2f6d0e1041ab981c853fe9733 (patch)
tree89b3943cea54b5b1b7addadf10951a08d21653d2 /src/inttypes/wcstoimax.c
parent46e4b9b12ec7d170691c2cb05970d6537633fa71 (diff)
update standards and safety checks
Diffstat (limited to 'src/inttypes/wcstoimax.c')
-rw-r--r--src/inttypes/wcstoimax.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/inttypes/wcstoimax.c b/src/inttypes/wcstoimax.c
index 8ab9734c..98c1636e 100644
--- a/src/inttypes/wcstoimax.c
+++ b/src/inttypes/wcstoimax.c
@@ -1,14 +1,16 @@
-#if 0
-
#include <stddef.h>
#include <errno.h>
#include <inttypes.h>
#include <wctype.h>
+#include "_safety.h"
+#undef wcstoimax
#define isspace iswspace
intmax_t wcstoimax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base)
{
+ SIGNAL_SAFE(0);
+
intmax_t ret = 0;
intmax_t max = INTMAX_MAX;
intmax_t min = INTMAX_MIN;
@@ -21,6 +23,3 @@ intmax_t wcstoimax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, in
/*
STDC(199901)
*/
-
-
-#endif