isascii(3) macros and casts

Paul Eggert eggert@cs.ucla.edu
Wed Dec 11 21:42:15 GMT 2024


On 2024-12-11 12:53, Alejandro Colomar wrote:
> On the other hand, calling isdigit() with anything that's not a valid
> char or EOF (-1) is already UB (and IMO, should stay as UB), so the
> first approach should be enough, no?

True, though it saves no instructions to make the behavior defined.


More information about the Libc-alpha mailing list