This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Patch for isdigit/isalpha/etc. macro arguments
Eli Zaretskii <eliz@gnu.org> writes:
>> This will crash and burn if *s < 0. You really need to cast to unsigned
>> char if you want to get defined behaviour.
>
> Isn't that the job of the isalpha implementation?
No. It needs to be able to recognize EOF.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."