diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 13:15:59 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 13:15:59 -0500 |
| commit | 608008917d26e7b2f6d0e1041ab981c853fe9733 (patch) | |
| tree | 89b3943cea54b5b1b7addadf10951a08d21653d2 /src/inttypes/strtoimax.c | |
| parent | 46e4b9b12ec7d170691c2cb05970d6537633fa71 (diff) | |
update standards and safety checks
Diffstat (limited to 'src/inttypes/strtoimax.c')
| -rw-r--r-- | src/inttypes/strtoimax.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/inttypes/strtoimax.c b/src/inttypes/strtoimax.c index 4c8db326..4d66558b 100644 --- a/src/inttypes/strtoimax.c +++ b/src/inttypes/strtoimax.c @@ -1,12 +1,14 @@ -#if 0 - #include <stddef.h> #include <ctype.h> #include <errno.h> #include <inttypes.h> +#include "_safety.h" +#undef strtoimax intmax_t strtoimax(const char * restrict nptr, char ** restrict endptr, int base) { + SIGNAL_SAFE(0); + intmax_t ret = 0; intmax_t max = INTMAX_MAX; intmax_t min = INTMAX_MIN; @@ -19,6 +21,3 @@ intmax_t strtoimax(const char * restrict nptr, char ** restrict endptr, int base /* STDC(199901) */ - - -#endif |
