On Tue, Jun 22, 2021 at 10:49:49AM -0700, David Bohman wrote:

> You cannot assume that the value returned to 'endptr' is greater than
> 'str' on a valid result. It could be a different string entirely, with
> a lesser pointer value. That is up to the implementation.

Postfix does not pass arguments to strtol() that violate pointer
aliasing.  We can and do correctly assume that strtol() behaves
correctly, and returns a value of 'endptr' that is >= the source
string.

-- 
    Viktor.

Reply via email to