From cc6e7378d3f5473137e0c46d39173e6f60dcefda Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 14:57:46 -0500 Subject: update standards and safety checks --- src/stdlib/strtol.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/stdlib/strtol.c') diff --git a/src/stdlib/strtol.c b/src/stdlib/strtol.c index 9b12b0e6..dc2b9d87 100644 --- a/src/stdlib/strtol.c +++ b/src/stdlib/strtol.c @@ -1,9 +1,8 @@ -#if 0 - #include #include #include #include +#include "_stdlib.h" /** convert string to long integer **/ @@ -13,6 +12,8 @@ long int strtol(const char * restrict nptr, char ** restrict endptr, int base) long int max = LONG_MAX; long int min = LONG_MIN; + SIGNAL_SAFE(0); + #include "_strtoi.h" return ret; @@ -47,6 +48,3 @@ RETURN(CONSTANT(LONG_MIN), converted value too small) RETURN(a TYPE(long int) value, the converted value) STDC(1) */ - - -#endif -- cgit v1.2.1