Paul Eggert <egg...@cs.ucla.edu> writes:

> If the documentation doesn't make it sufficiently clear that the
> behavior is not fully specified with an invalid base, we can do that.
> But let's not waste time testing corner cases that don't matter.

+1. I don't see why anyone would ever pass -1 as a base to strtol.
Usually it is a constant written by the programming. In that case -1
doesn't make sense.

If you were accepting user input for the base you would have to validate
it anyways.

Collin

Reply via email to