The function strtol() is not able to convert numbers that are larger than LONG_MAX and smaller than LONG_MIN as it uses signed numbers.
This can cause issues on different platforms; strtoul() should be used for unsigned long integers.
Discovered when trying to compile code with i686-w64-mingw32-gcc for Windows.
The function strtol() is not able to convert numbers that are larger than LONG_MAX and smaller than LONG_MIN as it uses signed numbers. This can cause issues on different platforms; strtoul() should be used for unsigned long integers. Discovered when trying to compile code with i686-w64-mingw32-gcc for Windows.