[1/3] msvcrt: Implement _atol_l.
Stefan Dösinger
stefandoesinger at gmail.com
Sun Mar 25 12:19:19 CDT 2018
Hello,
On 25/03/18 18:03, Hua Meng wrote:
> + __int64 ret = MSVCRT_strtoi64_l(str, NULL, 10, locale);
> +
> + if(ret > LONG_MAX) {
> + ret = LONG_MAX;
> + *MSVCRT__errno() = MSVCRT_ERANGE;
> + } else if(ret < LONG_MIN) {
> + ret = LONG_MIN;
> + *MSVCRT__errno() = MSVCRT_ERANGE;
> + }
This looks reasonable. Can you provide a simple test to verify that the
function indeed behaves as specified in MSDN?
More information about the wine-devel
mailing list