/* Adapted from common/lib/libc/stdlib/strtoul.c */ #include #include #include #include #define _FUNCNAME strtol #define __INT long #define __INT_MIN LONG_MIN #define __INT_MAX LONG_MAX long strtol(const char * __restrict, char ** __restrict, int); #include "_strtol.h"