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.